Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have two columns, one being Solar percentage and another is a date field. I want to retreive the value of the most recent date. how do I do this ?
Solved! Go to Solution.
Hi @Kolumam,
You try a measure like this:
Measure = VAR maxDate = CALCULATE ( MAX ( 'Table1'[Date] ), ALL ( Table1 ) ) RETURN CALCULATE ( MIN ( 'Table1'[Value] ), 'Table1'[Date] = maxDate )
Best Regards!
Dale
Hi Dale, just trying to understand why you are using calculate (min in your code. Is that because that is the only way to bring back a single value, and you have to do it as a kind of pseudo calculation? I have a similar need where I have to return a value based on a date, and am thinking this will work for me. But it's not really a calculation, I am just saying on the latest date, what is the rating (column value), all in the same table. I guess this would work as I haven't seen a different solution.
Hi @Kolumam,
You try a measure like this:
Measure = VAR maxDate = CALCULATE ( MAX ( 'Table1'[Date] ), ALL ( Table1 ) ) RETURN CALCULATE ( MIN ( 'Table1'[Value] ), 'Table1'[Date] = maxDate )
Best Regards!
Dale
Thanks.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
73 | |
57 | |
36 | |
31 |
User | Count |
---|---|
90 | |
60 | |
60 | |
49 | |
45 |