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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
sdrfghjkl
Frequent Visitor

Ranking and Extracting a Rank for a particular filtered column

Hi, 

 

Need a help to construct a Dax formula for Ranking and extracting the rank from a certain row. In our dataset we have have certain brands that needs to be ranked based on a certain measure(Brandshare). Currently we have the below Dax measure created 

 

Brand Rank = RANKX(ALL('Best Seller'[brand]),[Brand share],,DESC,Dense)
 
When we construct a table out of the measure everything is fine: 
 
In the below picture, The row highlighted in yellow is a own brand and is marked in a separate column brand_type
sdrfghjkl_0-1665481317437.pngsdrfghjkl_1-1665481419094.png

 

Now the ask is we want use only the rank of the brand where brandtype = Own in a card visual. How can we construct this Dax. Any help on this will be great. 

 

1 REPLY 1
amitchandak
Super User
Super User

@sdrfghjkl , Not very clear , Try a measure like

 

maxx(filter(Values('Best Seller'[brand]),'Best Seller'[brand] = "V-Guard"), [Brand Rank] )

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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