Forum Discussion
Osmandfernanobi
6 years agoRegular Visitor
Running sum with Period
Dear experts, I have a situation where I wanted to show the running total in a line chart for Actuals, Expected, and Variance, we are able to get the values and create the visual. But having a s...
ibarrau
6 years agoSuper User
Well, those measures are probably the "Sum" of something. Can you show us the columns involved in the tables that are used in the measures? Right there I can't see anything related with actual due to measures are not related with the table in which they are created.
Regards,
osmandfernando
6 years agoAdvocate I
Thank you for the reply
following are the formulas
Actual = CALCULATE(SUM(Burn[ACTUAL]),FILTER(ALLSELECTED(Burn),Burn[TrxnDate]<=MAX(Burn[TrxnDate])))
Variance = CALCULATE(SUM(Burn[VARIANCE]),FILTER(ALLSELECTED(Burn),Burn[TrxnDate]<=MAX(Burn[TrxnDate])))
Expected = CALCULATE(SUM(Burn[BUDGET]),FILTER(ALLSELECTED(Burn),Burn[TrxnDate]<=MAX(Burn[TrxnDate])))
- ibarrau6 years agoSuper User
Try using one of my formulas changing the max_date like this:
Measure = VAR max_date = CALCULATE ( MAX(Burn[TrxnDate]); FILTER( ALL(Burn[TrxnDate];Burn[ACTUAL]); OR( Burn[ACTUAL]>0 ; Burn[ACTUAL] <> BLANK() ) ) ) RETURN --Formula--That should be the max date of the actual values. Then you can use that as variable of the other formulas.
Regards,