Forum Discussion
CJBoelt
3 years agoFrequent Visitor
How do I create a DAX calculating the change per sequence?
Here is a Example of what the new graph would be. Essentially subtracting the actual_hours with all the values in the previous rows. This will provide a measure to show the difference of ch...
- 3 years ago
=SUM(Table[[Total Actual hours])-CALCULATE(SUM(Table[[Total Actual hours]),TOPN(1,FILTER(ALLSELECTED(Table[SEQ]),Table[SEQ]<MAX(Table[SEQ])),Table[SEQ]))
Anonymous
3 years agoNot applicable
Hi CJBoelt ,
Please find below solution
Diff = SUM(Sheet1[Total Actual hours])- CALCULATE(SUM(Sheet1[Total Actual hours]),
OFFSET(-1,ALLSELECTED(Sheet1[SEQ]),ORDERBY(Sheet1[SEQ])))
Best Regards,
Shreya
Appreciate with a Kudos!! (Click the Thumbs Up Button)
Did I answer your question? Mark my post as a solution!