Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Regular Visitor

Ranking Card

Hi, I got a database of transactions with (to simplify) two columns: PRODUCT/ REVENUE


I want to create a ranking of products based on REVENUE, so I created a new measure like



Rank By Revenue = RANKX(ALL(Data[Product]), Data[Revenue],,DESC)



and it is working properly, the problem is that I want to create a CARD which is showing just the position of a specific product (fixed).

My idea was to:

- create a card with using the measure

- applying a filter at visual level to report the rank of that specific product 

Unfortunately it is not working, any ideas?

Thanks in advance! 

Super User
Super User

@Br1bn , you should create a measure rank

Rank By Revenue = RANKX(ALL(Data[Product]), calculate(Sum(Data[Revenue])),,DESC)


Measure Rank:


You can also think of the index function

Power BI Index function: Top/Bottom Performer by name and value-

Thanks for your feedback, anyway the calculation is not working problem probably because I'm applying the ranking on that filtered by year, is it possible to add the dimension year (another dimension of the database) to the calculation? 

Helpful resources

PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors