Forum Discussion
Running sum with Period
Same Osmand here, I am confused with my community accounts,
Actual is not a separate table, All those 3 data fields (Actual, Expected, Variance) are in a new table created based on a another table name Burn,
There are several tables as you can see below
Thank you
Osmand
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,
- osmandfernando6 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,