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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Creating rank Top N function for hierarchy level data

I have data set with hierarchy column with Categoy and Prodcut .I know how to create TOP N rank fornuciotn for one field name.But when I create one hierarchy and drill down  the  level  my top N formula is not applying to next level.For example I have created the TOP N using category field .But in my chart I have put the hierarchy .before drill down I am getting top 2   as categroy in my chart.But when I drill down chart I am in procut level there I am not getting the top 2 within the product for that category.Because my top n rank dax is on the basis of categroy. Is there is any opton to expand my top n ranks funciton to hierarchy level aswell intead of category level. when everuser drill down the category he shoul see top n within that category

 

 
CategoryProductSales
Tooth pasteColgate100
Tooth pasteCibaca70
Tooth pasteDabur50
CosmeticPonds20
CosmeticLiril16
CosmeticCuttikoora20
CosmeticMice31
TVSamsung400
TVOnida3000
TVSony300
TVSunTV200
TVMono200
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , check with isinscope and switch can help.

IsInScope - Switch Rank at different levels: https://youtu.be/kh0gezKICEM

 

You can switch TOPN measure, inplace of Rank

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , check with isinscope and switch can help.

IsInScope - Switch Rank at different levels: https://youtu.be/kh0gezKICEM

 

You can switch TOPN measure, inplace of Rank

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.

Top Solution Authors