The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi,
I am trying to list the most recent value of a type.
date type value
1-1-2016 RED 210
2-1-2016 RED 170
10-1-2016 RED 190
1-1-2016 GREEN 400
15-1-2016 GREEN 560
16-1-2016 GREEN 500
2-2-2016 YELLOW 180
10-2-2016 YELLOW 200
18-2-2016 YELLOW 240
The only result that I want to have in a calculate table is:
10-1-2016 RED 190
16-1-2016 GREEN 500
18-2-2016 YELLOW 240
But every time, i get the sum of all three line items (for yellow: 180+200+240, instead of 240).
I manage to select the lastdate, with LASTDATE(date), but i get always the summed (180+200+240) value.
What about to create a calculated table, that has only the last values in it per type? Then is will not sum the different values for the dates as these are not in the table.
Any suggestions?
John
Solved! Go to Solution.
hi @JohnD2
A give you a solution but not using calculate table;
1: Create a measure:
RankDate = RANKX ( ALLEXCEPT ( Table1, Table1[Type] ), CALCULATE ( VALUES ( Table1[Date] ) ), , DESC, SKIP )
2, Use this measure as Visual Level filters
hi @JohnD2
A give you a solution but not using calculate table;
1: Create a measure:
RankDate = RANKX ( ALLEXCEPT ( Table1, Table1[Type] ), CALCULATE ( VALUES ( Table1[Date] ) ), , DESC, SKIP )
2, Use this measure as Visual Level filters
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
110 | |
78 | |
77 | |
39 | |
36 |
User | Count |
---|---|
158 | |
111 | |
64 | |
59 | |
54 |