Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
mohassan99
Helper II
Helper II

Get "Top N" of a category (Measure) with "By" value (Money Left on the Table) within the top 5.

 
I want to get "Top N" of a category (Measure) with "By" value (Money Left on the Table) within the Top N. So, if the maximum value in the "By" value (Money Left on the Table) repeats it will still show no more than five measures.

 

Alternatively, could I calculate Money/"Care Gaps to Potential" (a measure and int) (see table below) then show the N measures with values of that calculation in the within the Top N. 

 

I could sort the table by "Money ..." then crop the visual to only show the Top N, get rid of the total, and put a white box over the scroll bar, but is that what I must do? Can I limit rows to the Top N? Some measures take up two rows, others take one. If I crop the image there will be truncation at times.

 

So, if I filter for the Top N, is that top N distinct values in the "by" measure or 5 rows with the highest "by" measure?

 

Is there a way to work-around the by value being a value?

 

Filters/slicers affecting visual:               Table:

 

Filters.pngMeasures.png

 
 
 
 
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mohassan99 , I think you need Rank Tie breaker
https://community.powerbi.com/t5/Community-Blog/Breaking-Ties-in-Rankings-with-RANKX-Using-Multiple-...
https://databear.com/how-to-use-the-dax-rankx-function-in-power-bi/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@mohassan99 , I think you need Rank Tie breaker
https://community.powerbi.com/t5/Community-Blog/Breaking-Ties-in-Rankings-with-RANKX-Using-Multiple-...
https://databear.com/how-to-use-the-dax-rankx-function-in-power-bi/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.