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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
abelmendibles
New Member

Filter on specific Rankx value for card visual

I have the blow formula which correclty ranks these 5 rows.  In total I have about 100 rows, but the screenshot is just showing the top 5.  You'll see why...
 
USD Market Cap Rank = RANKX(ALL(CoinMarketCap[Crypto Name]), [Total USD Market Cap])

abelmendibles_0-1634966195268.png

 

Now I want to create a card for each of the top 5 and display the Market Cap amount.  I'm trying to put the market cap for the #1 ranking in 1 card.  The market cap for the number 2 ranking in a separate card.  The market cap for the number 3 ranking in a separate card, and so forth up to 5 dards.  Here's what I'm getting:

 

Rank 1 = CALCULATE(MeasuresTable[Total USD Market Cap], FILTER(CoinMarketCap,[USD Market Cap Rank] = 1))

abelmendibles_1-1634966507104.png

I know why I'm getting the above, its becuase it's taking the complete total for all my rows in the data.  

 

This is my DAX measure for card number 2, I'm trying to filter on just ranking 2, but get no results:

Rank 2 = CALCULATE(MeasuresTable[Total USD Market Cap], FILTER(CoinMarketCap,[USD Market Cap Rank] = 2))
abelmendibles_2-1634966630660.png

 

Any ideas on how I can correct my DAX measure to filter on a specific rank value?  The reason I want to filter on a specific ranking is beause as the rankings change, I want the cards to by dynamic and move the ranked items around between the 5 cards.  Thank you.

1 ACCEPTED SOLUTION
VahidDM
Super User
Super User

Hi @abelmendibles 

 

Try this to find the Ranking:

 

USD Market Cap Rank = RANKX(all(CoinMarketCap),CoinMarketCap[Total USD Market Cap],,DESC,Dense)

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 


 

View solution in original post

2 REPLIES 2
VahidDM
Super User
Super User

Hi @abelmendibles 

 

Try this to find the Ranking:

 

USD Market Cap Rank = RANKX(all(CoinMarketCap),CoinMarketCap[Total USD Market Cap],,DESC,Dense)

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 


 

Thank you!  This worked.  I changed ALL(CoinMarketCap[Crypto Name]) to ALL(CoinMarketCap) within the USD Market Cap Rank fomula like you stated and the update to this feed the individual Rank formulas and displayed correclty.  Thanks, again!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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