Forum Discussion

Roger_McCallen's avatar
Roger_McCallen
Frequent Visitor
3 years ago
Solved

Table calculating totals incorrectly

I have a table that is calculating row totals correctly, however the columns are not calculating correctly. The measure is taking the total sales in units multiplied by the number of pieces within each item divided by the number of duplicate items in the lookup table.

The issue I have is the lookup table has duplicates of the same item with minor attribute differences over time and I want to have the table aggregate the sales by item instead of showing multiple lines of the same item showing sales.

 
Here is the formula:
Total Pieces Sold = ([Unit Sales by Week]*('Item Info'[PackCount]))/COUNT('Item Info'[Description])
 
Any help the community can provide would be much appreciated

1 Reply