The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hello everyone.
So I have the following DAX expression for a measure:
Solved! Go to Solution.
Please have a look at the documentation first.
There are also examples of how to use this function -> LASTNONBLANK – DAX Guide
Assuming that certain conditions are met by your design, this might do the job:
[Measure] =
LASTNONBLANK(
FACTCooperativa[Year],
// You need a context transition here.
CALCULATE(
SELECTEDVALUE( FACTCooperativa[Ratio9PACA] )
)
)
Please have a look at the documentation first.
There are also examples of how to use this function -> LASTNONBLANK – DAX Guide
Assuming that certain conditions are met by your design, this might do the job:
[Measure] =
LASTNONBLANK(
FACTCooperativa[Year],
// You need a context transition here.
CALCULATE(
SELECTEDVALUE( FACTCooperativa[Ratio9PACA] )
)
)
Thank you very much that worked perfectly. I dont really understand why with CALCULATE does work but it does.
Please learn about context transition. Then you'll understand. Start here: Understanding context transition in DAX - SQLBI
User | Count |
---|---|
25 | |
10 | |
8 | |
7 | |
6 |
User | Count |
---|---|
32 | |
12 | |
10 | |
10 | |
9 |