I am using a data set from syndicated data that can break down customer data aggregated by class of trade. We do not receive data on one type of class of trade but can infer the number by subtracting the available class of trade sales from the Total Sales. I am looking for a way to do this calculation in Alteryx over a large number of observations.
Sample Data Set
Time Period | Product Name | Class of Trade | Sales
Week 1 | Product A | All Customers | $200
Week 1 | Product A | Customer A | $100
Week 1 | Product A | Customer B | $20
In the above example we do not get data from customer C, but the implied sales of customer C is $80 (to sum to All Customers sales of $200).
I am looking for a way to add a row that would Subtract Customer A and B Sales from All Customers and give me a backed out observation for Week 1 | Product A | Customer C. To add to this, some products are only sold at Customer A and Customer C so it wouldnt always be subtracting Customer B (because sales would be 0). Sorry if this is confusing, I am unable to share more specific data.
Thanks Alteryx Community