Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
23 | |
20 | |
15 | |
13 |
User | Count |
---|---|
51 | |
42 | |
39 | |
19 | |
19 |