March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I have a big table in Power BI where I want to write a DAX Expression to create a new table for each location only to show the 3 highest “losses” values.
But sometimes some rows have the same “losses” values therefore I want to show the rows even if they have the same number of “losses” values.
For example, if I filter by “location06” and select the highest 3 numbers:
ID | Location | Losses |
16743 | Location06 | 300 |
16744 | Location06 | 300 |
16742 | Location06 | 255 |
16753 | Location06 | 150 |
But in case the Losses number is repeated then this is what I want to see:
ID | Location | Losses |
16743 | Location06 | 300 |
16744 | Location06 | 300 |
16742 | Location06 | 255 |
Link to sample datesource file Excel sheet
Solved! Go to Solution.
Make it more flexible,
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LeanAndPractise(Everyday) ) |
Hi,
Try these measures
L = SUM(Data[Losses])
Measure = RANK(DENSE,ALL(Data[ID]),orderby([L],DESC,Data[ID],ASC))
Expand the filter pane and select <=3 as the filter criteria. Hope this helps.
Hi,
Try these measures
L = SUM(Data[Losses])
Measure = RANK(DENSE,ALL(Data[ID]),orderby([L],DESC,Data[ID],ASC))
Expand the filter pane and select <=3 as the filter criteria. Hope this helps.
Hi @2019
How about this? The are 2 records each for 300 and 255.
Proud to be a Super User!
Please see attached pbix. Visually filter the table to Show? = 1 or not blank.
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
90 | |
89 | |
85 | |
73 | |
49 |
User | Count |
---|---|
167 | |
148 | |
92 | |
72 | |
58 |