Forum Discussion

sparkplug93751's avatar
6 years ago

Getting Category total per Item

Hello,

 

I have a measure that I want to use to measure where (actual item/category total)*forecast total = item forecast

 

How can I isolated the category total for it to be the same per item in the category? I'm currently using a sumx but that isn't adding the values, only aggregating it at a higher level where 

 

Category total = 

CALCULATE(SUMX(Category,[Forecast Cost]),
(GROUPBY(Category,Category[Category])),
USERELATIONSHIP('Forecast'[Category & Description],'Category'[Category & Description]))
 
It's not summing the values rather performing the forecast cost which is 
Forecast Cost = (Planned items * cost per item)+cost so far
 
Any help is appreciated

3 Replies