Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. 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
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |