Forum Discussion
cumulative values without any time frame with separated lines for legend
I want to accumulate values over time without any time frame. I have visual created with single line but I can't make separate values for separate groups to be shown on the same chart (without creating separate measures per group/person as I'll never know exact number of people):
result I want to achieve something like this:
any idea how to solve it?
current value for cummulation:
tables (separate for calendar)
Hi Bart-ek ,
try this
cumulation of results = VAR MaxDate = MAX('CALENDAR'[Date]) RETURN CALCULATE( SUM(test[result in numbers]), FILTER( ALL(CALENDAR), 'CALENDAR'[Date] <= MaxDate ) )If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
actually found a solution myself too after I've placed this thread 😄 ...
all('CALENDAR')instead ofall('test')that brings this result:
4 Replies
- mwegener
Most Valuable Professional
Hi Bart-ek ,
try this
cumulation of results = VAR MaxDate = MAX('CALENDAR'[Date]) RETURN CALCULATE( SUM(test[result in numbers]), FILTER( ALL(CALENDAR), 'CALENDAR'[Date] <= MaxDate ) )If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.