cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
michelleberkenb
New Member

Reflecting value and percentage in PowerBI Matrix

Reflecting value and percentage in PowerBI Matrix
yesterday

Good day,

Is it possible to display both value and percentages in PowerBI Matrix?
Each KPI either has value or percentage and needs to be represented as such in one Matrix

 

See excel example below:

Capture.JPG

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @michelleberkenb ,

You can create a new measure as below to replace the original value field, and its data type will be Text type... Please find the deatils in the attachment.

Measure =
VAR _sum =
    SUM ( 'Table'[Value] )
VAR _selheading =
    SELECTEDVALUE ( 'Table'[Heading] )
RETURN
    IF ( _selheading = "PTRAs", FORMAT ( _sum, "Percent" ), _sum )

vyiruanmsft_0-1695356286138.png

In addition, please review the following links and check if it can achieve the same requirement by creating calculation group.

Custom Data Labels in Power BI - Goodly

Creating Value Dynamic Formatting using Calculatio... - Microsoft Fabric Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yiruan-msft
Community Support
Community Support

Hi @michelleberkenb ,

You can create a new measure as below to replace the original value field, and its data type will be Text type... Please find the deatils in the attachment.

Measure =
VAR _sum =
    SUM ( 'Table'[Value] )
VAR _selheading =
    SELECTEDVALUE ( 'Table'[Heading] )
RETURN
    IF ( _selheading = "PTRAs", FORMAT ( _sum, "Percent" ), _sum )

vyiruanmsft_0-1695356286138.png

In addition, please review the following links and check if it can achieve the same requirement by creating calculation group.

Custom Data Labels in Power BI - Goodly

Creating Value Dynamic Formatting using Calculatio... - Microsoft Fabric Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

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

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors