FIRST

Updated on

FIRST is a DAX function that retrieves a value from the first row of an axis in a visual calculation data grid.

Syntax

FIRST(
   Expression,
   Axis,
   Blanks,
   Reset
)
Argument Properties Description
Expression The expression to be evaluated.
Axis Optional An axis reference.
Blanks Optional Defines how to handle BLANK OrderBy values. Valid values include: DEFAULT, FIRST, LAST.
Reset Optional Specifies how the calculation restarts. Valid values are: None, LowestParent, HighestParent, or an integer.

Return Values

The value of column from the first element of the axis.

Remarks

This function can only be used in a visual calculation.

Example

The following visual calculation returns the sales amount of the first row on ROWS axis, that resets on the lowest parent.

FirstInternetSalesAmount = FIRST ( [Sum of SalesAmount], ROWS, LowestParent )

The screenshot below shows the visual matrix and the visual calculation expression:

DAX visual calculation

Contribute » | Contributors: Rick de Groot

2023-2024 © BI Gorilla. All rights are reserved. Information from Microsoft docs is property of Microsoft Corp. | Privacy Policy