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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors