Forum Discussion
LD
4 years agoFrequent Visitor
Issue on Cumulative Sum
Dear All, please, I have the following Dataset and I would like to measure the cumulative sum by month of [YTD_in/out]_ I try the following structure: Var LastM = SELECTEDVALUE('Y Proj...
tamerj1
4 years agoCommunity Champion
Please use
=
VAR LastM = 'Y Projection'[Month]
VAR CurrentDepTable =
CALCULATETABLE (
'Y Projection',
ALLEXCEPT ( 'Y Projection', 'Y Projection'[Department] )
)
RETURN
SUMX (
FILTER ( CurrentDepTable, 'Y Projection'[Month] <= LastM ),
'Y Projection'[YTD_IN/OUT]
)LD
4 years agoFrequent Visitor
Thank You Tamerj1,
It's fine and the value are exact!!!!