Forum Discussion
How to create a new calculated row from previous row
- 6 years ago
hi Anonymous
You could also try this simple measure
Measure = CALCULATE(SUM('Table'[C4]),DATEADD('Table'[C3].[Date],-1,MONTH))+SUM('Table'[C4])Then drag it into matrix visual and set "show on rows"
and here is sample pbix file, please try it.
Regards,
Lin
hi Anonymous
You could also try this simple measure
Then drag it into matrix visual and set "show on rows"
and here is sample pbix file, please try it.
Regards,
Lin
- Anonymous6 years agoNot applicable
Hi Lin,
Thank you so much for your solutions. I checked the file you attached and its working as I expected.
I tried to apply the same logic in my original file and not getting the expected output. I am getting the sum of current month data instead of prev month + current month. for example, Jan month data is 200 and Feb is 250 then I am getting 500 instead 450.
I couldn't able to attach my file here. I checked all the settings in your file and compared with me but I couldn't get what is the issue. can you help me on this pease?
- Anonymous6 years agoNot applicable
Its working fine now. Thank you.