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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
JonasBI
Helper I
Helper I

Show only specific rank from table

Hi everyone,

 

I'm rather new to Power BI and was wondering whether there is function to only show a specific rank of a table based on a measure.

E.g. I want to create a podium with 1st 2nd and 3rd place (based on a measure that counts the race points) and need visuals for each place. 

JonasBI_0-1657532919245.png

What would be the measure to only show 'Williams' on a Card Visual?

 

Thanks in advance!

1 ACCEPTED SOLUTION

Try

Rank = RANKX(
ALL(constructors),
[Points]
)

View solution in original post

9 REPLIES 9
johnt75
Super User
Super User

You can use a measure which returns a number as a filter, so you could use your Rank measure. Add the Name column to the card visual, then add Rank as a filter to show only when the value is 3.

I can not filter based on a measure. It won't let me click anything, eventhough it looks like I should be able to click the dropdown menu

JonasBI_0-1657533711086.png

 

make sure that the Format of the Rank measure is set to Whole Number

johnt75_0-1657534887677.png

 

It is, but I can still not use it as a Filter

at what level are you applying the filter, page or visual? because it will only work at visual level. SQL BI have an interesting article on measures as filters

I am applying the filter at visual level. Is it possible to get a calculated column for the Rank Function instead of a measure? 

If so, what would it be if thats my measure?

Rank = RANKX(
ALL(constructors[Name]),
[Points]
)

I think that that code would also work for a calculated column, but bear in mind that it will not be affected by any slicers or filters, so you could not for example choose a date range

Unfortunately it does not work..

JonasBI_0-1657537835476.png

 

Try

Rank = RANKX(
ALL(constructors),
[Points]
)

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.