Forum Discussion

Ortignano's avatar
Ortignano
Helper II
3 years ago
Solved

Comulative shipments with filter

Hi, I would calculate a cumulative shipment for a product. 

I use the following formula, but it gives me not the cumulative but only the shipment by month.

 

CumulativeShipBATT =
VAR comcares =
CALCULATE (
SUM ( Shipments[Qty] ),
FILTER ( Shipments, Shipments[Family_ID] = "A" ),
FILTER ( ALL ( DateTable ), DateTable[Date] <= MAX ( DateTable[Date] ) )
)
RETURN
comcares

 

Can you indicate to me where I'm wrong?

Thank you

1 Reply