Forum Discussion
streli
3 years agoHelper I
Cumulative sum in powerquery editor
Hi I have 3 colums: a dataday, an expiry date column and a volumen column (you can see in the picture: each dataday has an expiry date and a unit value.) How can I calculate a cumulative amount ...
Manoj_Nair
3 years agoSolution Supplier
streli- Check this out, if this works for you.
Cumulative Amount =
CALCULATE(
SUM('Table'[Volumen]),
FILTER(
ALL('Table'),
'Table'[ExpiryDate] > MAX('Table'[DataDay])
)
)