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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Top 10 values in Matrix visual

Hi Community..!!

Please refer a below image.This is a matrix visual

 

Prasad_Patil_1-1668064151762.png

 

I want to display top10 columns, expect both side left colored columns (these are PY and CY share).

I am using share% measure to display top 10 columns into the matrix visual. The columns which are red in color (PY and CY) should be constant and remaining in between columns should be top 10 (number of columns = 10).

Can we achieve this in to the matrix visual?

please help me to solve this.

2 ACCEPTED SOLUTIONS

Hi, @Anonymous 

You need a rank measure first:

Rank =
VAR tab =
    SUMMARIZE ( ALL ( Sheet1 ), Sheet1[Row], "_Share", Sheet1[share%] )
RETURN
    RANKX ( tab, Sheet1[share%],, DESC, DENSE )

Then you may need to create multiple measure to replace your original column values.

Similar to the following:

New Column2 =
IF ( [Rank] <= 10, SUM ( 'Sheet1'[Column2] ), BLANK () )
New Column3 =
IF ( [Rank] <= 10, SUM ( 'Sheet1'[Column3] ), BLANK () )

.....

If it doesn't work, please share a sample pbix file for further research.

Best Regards,
Community Support Team _ Eason

 

View solution in original post

Anonymous
Not applicable

4 REPLIES 4
v-easonf-msft
Community Support
Community Support

Hi, @Anonymous 

Not fully sure what you mant.

Please check if 'TopN' in visual filter pane could work for you.

veasonfmsft_0-1668135083576.png

 

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

Hi @v-easonf-msft 
If I go with the option that u have mentioned above then I will get top10 for all the bars.
my queston is, left  and right most column will be constant(red in border). Expect these columns I want top10 columns in between them.
I Hope now u are clear with the requirement.

Hi, @Anonymous 

You need a rank measure first:

Rank =
VAR tab =
    SUMMARIZE ( ALL ( Sheet1 ), Sheet1[Row], "_Share", Sheet1[share%] )
RETURN
    RANKX ( tab, Sheet1[share%],, DESC, DENSE )

Then you may need to create multiple measure to replace your original column values.

Similar to the following:

New Column2 =
IF ( [Rank] <= 10, SUM ( 'Sheet1'[Column2] ), BLANK () )
New Column3 =
IF ( [Rank] <= 10, SUM ( 'Sheet1'[Column3] ), BLANK () )

.....

If it doesn't work, please share a sample pbix file for further research.

Best Regards,
Community Support Team _ Eason

 

Anonymous
Not applicable

Thank U @v-easonf-msft 

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.