March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi @ddpl ,
FIRSTNONBLANKVALUE() returns the first non-blank value of <expression> corresponding to the sorted values of <column>.
FIRSTNONBLANKVALUE(<column>, <expression>)
This function is different from FIRSTNONBLANK in that the <column> is added to the filter context for the evaluation of <expression>. It is equivalent to :
=
CALCULATE (
<Expression>,
FIRSTNONBLANK ( <Column Name>, CALCULATE (<Expression> ) )
)
I have built a simlply data sample for you to understand:
Measure 1 = FIRSTNONBLANK('Table'[Type],CALCULATE(SUM('Table'[Value])))
Measure 2 = FIRSTNONBLANKVALUE('Table'[Type],CALCULATE(SUM('Table'[Value])))
Measure 3 = FIRSTNONBLANKVALUE('Table'[Type],SUM('Table'[Value]))
Refer to:
FIRSTNONBLANKVALUE function (DAX) - DAX | Microsoft Docs
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ddpl ,
FIRSTNONBLANKVALUE() returns the first non-blank value of <expression> corresponding to the sorted values of <column>.
FIRSTNONBLANKVALUE(<column>, <expression>)
This function is different from FIRSTNONBLANK in that the <column> is added to the filter context for the evaluation of <expression>. It is equivalent to :
=
CALCULATE (
<Expression>,
FIRSTNONBLANK ( <Column Name>, CALCULATE (<Expression> ) )
)
I have built a simlply data sample for you to understand:
Measure 1 = FIRSTNONBLANK('Table'[Type],CALCULATE(SUM('Table'[Value])))
Measure 2 = FIRSTNONBLANKVALUE('Table'[Type],CALCULATE(SUM('Table'[Value])))
Measure 3 = FIRSTNONBLANKVALUE('Table'[Type],SUM('Table'[Value]))
Refer to:
FIRSTNONBLANKVALUE function (DAX) - DAX | Microsoft Docs
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
https://www.youtube.com/watch?v=UxzUsqjjp-Q
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
87 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |