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
Linders
Regular Visitor

New Matrix Column for Total Percentages

Hi All,

I've been stuck working on creating another column in my matrix chart to capture the total percentages (shown in the red). Does anyone have any suggestions on how to solve for this or where to begin with the DAX formula? Thank you in advance for your help!

 

StatusGroup 1Group 2TotalOpen/Closed %
Closed753511073.33 %
Open251540 26.67%
Total10050150100 %
1 REPLY 1
FreemanZ
Super User
Super User

hi @Linders ,

 

not sure if i fully get you, supposing you have a data table like:

Status Group Value
Open Group1 25
Open Group2 15
Closed Group1 70
Closed Group1 5
Closed Group2 35

 

try to plot a Matrix visual with two measures like:

ValueSum = SUM(data[Value])
Open/Closed% = 
VAR _all = CALCULATE([ValueSum], ALL(data[status]))
VAR _result = DIVIDE([ValueSum], _all)
RETURN _result

 

it worked like:

FreemanZ_0-1702817543966.png

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.

Top Solution Authors