Forum Discussion
Zoltan10
4 years agoNew Member
Filter for cumulative total
Hi All, I would like to conditionally summarize categories where we had data until now in the year. For example: 1th month we had value1 only for cat2, so the result ...
tamerj1
Community Champion
4 years agoZoltan10
Not sure if I fully understand but you may try following two options (calculated column and measure)
Total Value =
VAR CurrentMonth = Sheet1[Month]
RETURN
CALCULATE (
SUMX (
Sheet1,
Sheet1[Value1] * Sheet1[Value2]
),
Sheet1[Month] <= CurrentMonth,
REMOVEFILTERS ()
)Total Value Measure =
VAR CurrentMonth = MAX ( Sheet1[Month] )
RETURN
CALCULATE (
SUMX (
Sheet1,
Sheet1[Value1] * Sheet1[Value2]
),
Sheet1[Month] <= CurrentMonth,
REMOVEFILTERS ()
)