FIRSTNONBLANK

Updated on

FIRSTNONBLANK is a DAX function that returns the first value in a column for which an expression is non-blank.

Syntax

FIRSTNONBLANK(
   ColumnName,
   Expression
)
Argument Properties Description
ColumnName The source values.
Expression The expression to be evaluated for each value.

Return Values

A table containing a single column and single row with the computed first value.

Remarks

  • The column argument can be any of the following:

    • A reference to any column.
    • A table with a single column.
  • A Boolean expression that defines a single-column table .

  • Constraints on Boolean expressions are described in the topic, CALCULATE function.

  • This function is typically used to return the first value of a column for which the expression is not blank. For example, you could get the last value for which there were sales of a product.

  • This function is not supported for use in DirectQuery mode when used in calculated columns or row-level security (RLS) rules.

Empty

Other functions related to FIRSTNONBLANK are:

Contribute » | Contributors: Rick de Groot
Microsoft documentation: https://learn.microsoft.com/en-us/dax/firstnonblank-function-dax

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