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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Sum of values based on distinct values in other column

Hello my name is Leonardo , and i have problem with this table. 

It has repetitive values and i want to calculate some measures

[IMG]http://i66.tinypic.com/29qfl88.png[/IMG]

The table shows the volume in "M3" for each SKU produced, as well as the Volume of "Lubrication Consumption (M3)" and "Washing Machine Consumption (M3)", which are the same for each "LINE". The general consumption of water on the "Consumption M3" day is also shown. What I want to calculate: "Other Consumption (m3)" = "Consumption M3" - "Consumption Lubrication (m3)" - "Washing Machine Consumption (m3)"; for each day. for example: For 03/01/2018 would have Other consumptions (m3) = 686 - (41 + 21 + 40 + 0) - (135 + 100 + 0 + 154). Likewise I want to calculate the WUR (Water Usage Ratio) = ((Sum of "M3") + (Sum "of Consumption M3")) / (Sum of "M3"), for each day. For example: For 03/01/2018 I would have WUR VDR = ((28 + 107 + 68 + ....) + 686) / (28 + 107 + 68 + ..)

 

Please help me, I've broken my head trying to calculate it with distinct but it still does not work out. My entire thanks. Leonardo LIMA PERU

 

1 ACCEPTED SOLUTION
1 REPLY 1
foodd
Super User
Super User

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors