DAX formula to do % of total by multiple filters

Slizer6893

Active Member
Joined
Oct 25, 2013
Messages
271
I am stumped right now.

I have fairly straight forward data these are the order of the columns at the moment

Date (Relative Month)
Plant Location
Product Group
Type
Color
Scrapped
Received

I need to summarize data as follows

By Date/Plant
Product Group/Type/Color : Scrap/Received so a % of scrap to received for that

So I would think the sum should be product group/type/color. Then divide the columns but I can not get it to work that way.

I also need to ignore any zeroes in the received column but that is achieved through my iferror. The big issue I am running into is its doing a totaled percentage. So it sums up all the percents instead of recalculating the totals then dividing again.

Basically it needs the ability to look at Product Group totaled....then product group-type totaled...then all 3

Any ideas?

Thank you ahead of time
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
So, let's get specific. What does not work about this?

Total Scrapped := SUM(Table1[Scrapped])
Total Received := SUM(Table1[Received])
% Scrapped := DIVIDE([Total Scrapped], [Total Received])
 
Upvote 0
When I bring it into a pivot table. I want it to be able to not sum the %'s of an entire category. I would like to be able to look at the data at all different levels but it just adds up the percentages...there should never be 5250% scrapped items that doesn't make sense. I also know some of the data is iffy so I need to fix it on that side as well.
 
Upvote 0
I can't imagine a place in the pivot table that would give you that... without bad data. I'm happy to look at a workbook if you think me wrong. (Share via OneDrive, DropBox, GoogleDrive, etc)
 
Upvote 0
We are doing monthly financials but I will try and work up a scrubbed version after this week. I may be doing something small wrong causing it not to work. Just seems odd its happening this way.
 
Upvote 0

Forum statistics

Threads
1,215,635
Messages
6,125,940
Members
449,275
Latest member
jacob_mcbride

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top