Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

Cumulative column to be a calculated column

I have the next dax formula for a measure that gives me the cumulative value from a certain column in my data model;

It works well, except when someone plays with the slicers, sometimes it doesnt show all the months. To ilustrate this:

 

Desired behavior

January 2

February 2

March 5

April 8

May 8

 

Actual behaviour after some filters with slicers

January 2

March 5

May 8

 

So the graph doesnt looks how it was planned. I think it is because of the context, which I guess I can solve with a calculated column instead of a measure. Someone has any idea how I can turn the next dax measure into a column? Or to tell me if my understanding is correct?

 

Thank you

 

Output cumulative = CALCULATE( SUM(B2B[Completed_Pts]), FILTER( ALLSELECTED(B2B), B2B[Date] <= MAX(B2B[Date]) ) )

2 Replies