Forum Discussion
Incorrect Total
I'm running into a problem with incorrect totals in my measure despite using a SUMMARIZE formula which based on articles online should fix the issue.
"Forecast Sum" = Forecast on the product family level
"Forecast Split by Item" = with this measure I'm trying to allocate [Forecast Sum] to item level based on bookings in the prior year
With this everything is calculated correctly except that if I add "Workflow" (another level of product hierarchy) to the matrix the total per workflow is not correct (6,810+5,723=12,533 not 14,574):
I tried to fix this with Summarize formula but doesn't change the result:
SUMX (
SUMMARIZE (
VALUES ( dim_product[Item No] ),
"Forecast", Forecast[Forecast Sum],
"Item Alloaction", Bookings[Item Allocation]
),
[Forecast] * [Item Alloaction]
)
pbix file: https://fastupload.io/OZS4Z87oPbjVRKa
What am I missing?
Thanks!
Simplify it. Get rid of the SUMMARIZE code
4 Replies
- HotChilliCommunity Champion
Try changing
Forecast Split by Item to be a SUMX over the Product Family (you'll need a VALUES function in there)- PshemekFLKHelper IV
HotChilli, that's what I tried to do with "Forecast Split by Item_Summarize" measure but it didn't fix the issue
- HotChilliCommunity Champion
Simplify it. Get rid of the SUMMARIZE code
- PshemekFLKHelper IV
HotChilli it worked! many thanks for help!
Correct formula:
Forecast Split by Item = SUMX(VALUES(dim_product[Item No]),Forecast[Forecast Sum]*Bookings[Item Allocation])