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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Yonah
Helper II
Helper II

Rank with Filter,Slicer in Matrix

Hi,
I'm not sure how to say it. But i'm working on a very complexd Matrix, how most show a lot of information. On of this information is the Ranking of the Percentage of Rev1 in the respective column.  Plus in the Matrix they are 4 Rows plus one Slicer, so in the best Case the Ranking is somewhat dynamic, depending on the selectet row.

So in the Ende the Matrix should lock like this:

Year201920192019201920192019202020202020202020202020
 Rev2QuantityAvg. Rev 2Rank Avg. PurchaseAvg. Rev1Rev2QuantityAvg. Rev 2Rank Avg. PurchaseAvg. Rev1
ArticleCategory            
  Product Name            
      Colore            
           Country             


Here you can find my data and Daschboard 
https://1drv.ms/u/s!AoFqgLqZH-C0hMly7YByjMZJbE-Fyg?e=flYXKl

 

 

Many thanks in advance

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Yonah , Create 4 Rank and switch it using isinscope in reverse order child to parent

 

Rank ArticleCategory = rankx(allselected(Table[ArticleCategory]),[Measure])

Rank Product Name= rankx(allselected(Table[Product Name]),[Measure])

Rank Colore= rankx(allselected(Table[Colore]),[Measure])

Rank Country= rankx(allselected(Table[Country]),[Measure])

 

final Rank =  Switch(True() ,

isinscope(Table[Country]) , [Rank Country],

isinscope(Table[Colore]) , [Rank Colore],

isinscope(Table[Product Name]) , [Rank Product Name],

isinscope(Table[ArticleCategory ]) , [Rank ArticleCategory ] )

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

2 REPLIES 2
amitchandak
Super User
Super User

@Yonah , Create 4 Rank and switch it using isinscope in reverse order child to parent

 

Rank ArticleCategory = rankx(allselected(Table[ArticleCategory]),[Measure])

Rank Product Name= rankx(allselected(Table[Product Name]),[Measure])

Rank Colore= rankx(allselected(Table[Colore]),[Measure])

Rank Country= rankx(allselected(Table[Country]),[Measure])

 

final Rank =  Switch(True() ,

isinscope(Table[Country]) , [Rank Country],

isinscope(Table[Colore]) , [Rank Colore],

isinscope(Table[Product Name]) , [Rank Product Name],

isinscope(Table[ArticleCategory ]) , [Rank ArticleCategory ] )

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

Thank you

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.