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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Back2Basics
Helper IV
Helper IV

Display percentage in Matrix Preview

Hi

 

I'm trying to create a view using the Matrix Preview to display the perecentage of 'Fail' and 'Pass' for each row.

 

Pass and Fail are the only two values available in a column called 'KPI 1' - a calculated column base don another column. I've hidden my category details, as this is sensitive, but should give an idea of what I have currently:

 

Capture.JPG

 

So for the first rowI would like to see the Fail percentage as 50.6% and Pass percentage as 49.4%

 

Any help would be apprecaited.

 

TIA

 

Henry

1 ACCEPTED SOLUTION
Sean
Community Champion
Community Champion

Right-Click on the field you have in the Values area of the Matrix Preview => Show Values As => Percent of Row Total

 

But if you want a Measure which you can actually format (number of decimals) use this Measure instead

% of Row Total Measure =
DIVIDE (
    SUM ( 'Table'[Score] ),
    CALCULATE ( SUM ( 'Table'[Score] ), ALLSELECTED ( 'Table'[KPI 1] ) ),
    0
)

View solution in original post

4 REPLIES 4
Sean
Community Champion
Community Champion

Right-Click on the field you have in the Values area of the Matrix Preview => Show Values As => Percent of Row Total

 

But if you want a Measure which you can actually format (number of decimals) use this Measure instead

% of Row Total Measure =
DIVIDE (
    SUM ( 'Table'[Score] ),
    CALCULATE ( SUM ( 'Table'[Score] ), ALLSELECTED ( 'Table'[KPI 1] ) ),
    0
)

Hi @Sean

 

Many thanks for the reply. This has worked brilliantly.

 

Hello friends
It seems to me that did not solve the problem.
I want the total to be as recorded in the picture.
Thanks

percent.png

The formula is  (390 - 33.7) / 390 = 91.3%

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.