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
Cevaro
Helper I
Helper I

Modifying measure to a percentage of two summed values

Hello,

I have such a problem.
A dashboard is created using the Matrix table.
I use the Measure written in this way, which is on the screenshot below.


measure1.png


However, the problem is that it adds the percentages together as a total. But I would need to modify the Measure so that it also makes a ratio of SUM(Scrap)/SUM(Sales) at the end (marked in yellow) and not the sum of percentages (marked in red).

 

bug1.png

 

Is it possible to somehow modify this measure so that it does what I want?

 

Thank you very much for your help.

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

I think you can just remove the SUMX( VALUES()) part of your code and just use the divide

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

I think you can just remove the SUMX( VALUES()) part of your code and just use the divide

AWESOME! it works 😄 thank u very much for your help! 🙂

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.