The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |