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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
clem312
Resolver I
Resolver I

Matrix ?

Hi,

 

I need to built a strange matrix :

For each brand, the top 5 items and the percentage associated for that item order by DESC

I have no idea how to built that with Power BI visualisation graphs I know :

2021-08-11 13_01_51-CVQS 2019 FY - EU4 13.xlsx - Excel.png

1 ACCEPTED SOLUTION

Excellent, thank you Amit !

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@clem312 , Create rank , assume you have percentage measure

 

Rank = rankx(filter(allselcted(Table[Brand], Table[Item]), [Brand] =max([Brand]),[percentage],,desc, dense)

 

Create a new series 

RankT = generateseries(1,5,1)

 

Now use this column from RankT on rows of matrix and band on column

 

Try measures like

 

maxx(Filter(addcolumns(Summarize(Table, Table[Brand], Table[Item]), "_1", [percentage], "_2", [Rank]), [_2] =max(RankT[Value])), [Item])

 

refer if needed

 

Dynamic Segmentation Bucketing Binning
https://community.powerbi.com/t5/Quick-Measures-Gallery/Dynamic-Segmentation-Bucketing-Binning/m-p/1...


Dynamic Segmentation, Bucketing or Binning: https://youtu.be/CuczXPj0N-k


maxx(Filter(addcolumns(Summarize(Table, Table[Brand], Table[Item]), "_1", [percentage], "_2", [Rank]), [_2] =max(RankT[Value])), [percentage])

 

remove null rankT values or Rank > 5

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

Hi Amit,

 

However, I am not able to display the percentage new to the items as in the table I posted. The items are nicely ordered by their rank but the percentage become totally wrong.

Any idea ?

Excellent, thank you Amit !

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.