I am doing a rolling sum om some data, the rolling sum seems to work but when i roll up the rolling to another hierarchy, the negatives in the calculation still reduces the value.
I have two basic dax calculations:
Sum = ‘Inventory Balances Components -Report R5841003’[Quantity On Hand (Dollars)] + ‘V3411L - MRP Detailed Message Review’ [Quantity Available (Dollars)] + ‘V4311CC - Open Orders’[Open Orders (Dollars)] - ‘V3412A- MRP Pegging Inquiry’[Quantity Ordered (Dollars)]
Rolling Sum Qty W/O -ve inventory =
VAR RollingSum = CALCULATE(
[Sum of Quantities],
FILTER(
ALLSELECTED(DateTable),
DateTable[Date] <= MAX(DateTable[Date])
)
)
RETURN
Rolling sum
I added a condition to the rolling sum to take care of the negatives, at the granular level it works but when I roll up to another hierarchy, it still applied the negative calculation
thanks for your help