Forum Discussion
Anonymous
6 years agoNot applicable
Retrieving Sum from Prior Period
Hello all... I'm looking for guidance on how to create a measure/measures that will retrieve the sum total from the prior period, in this case $4.00, that I can then use to subtract from the curr...
- 6 years ago
amitchandak
6 years agoSuper User
Anonymous , Move period to separate table , say Period
and then try
This Period = CALCULATE(sum('Table'[Value]), FILTER(ALL('Period'),'Period'[Period]=max('Date'[Period])))
Last Period = CALCULATE(sum('Table'[Value]), FILTER(ALL('Period'),'Period'[Period]=max('Date'[Period])-1))
Very similar approach I used in Week here
Anonymous
6 years agoNot applicable
amitchandak Thanks but I can't move the period to a separate table in this case.
- amitchandak6 years agoSuper User
Anonymous , Try like
This Period = CALCULATE(sum('Table'[Value]), FILTER(ALLSELECTED('Table'),'Table'[Period]=max('Table'[Period])))
Last Period = CALCULATE(sum('Table'[Value]), FILTER(ALLSELECTED('Table'),'Table'[Period]=max('Table'[Period])-1))- Anonymous6 years agoNot applicable
Thanks, I'll try that.