Forum Discussion
Use Previous Value In Column In Calculation
- 3 years ago
Hi PBE ,
Please try:
Excess = SUMX(FILTER('Table',[Row]<=EARLIER('Table'[Row])),[Amount]-[Available])Final output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- 3 years ago
Hi PBE ,
Please try:
Measure = var _a = ALLSELECTED('Table'[Work Type]) var _b = MAX('Table'[Row]) return SUMX(FILTER(ALL('Table'),[Work Type] in _a&&[Row]<=_b),'Table'[Amount]-'Table'[Available])Output:
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Jianbo Li
Thank you very much it works well.
I wonder if you could help with one last thing.
I need an extra column which highlights where Amount - Available is a positive number. Please see explanation below. I hope it makes sense!
Thanks
Pete
Hi PBE ,
Sorry, this question is beyond the topic at the beginning of the post.
In order to make the post more relevant, please consider posting a new thread for this issue so that more users can participate and also better help other users with similar problems.
Thank you for your understanding!🙂
Best Regards,
Jianbo Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- PBE3 years agoHelper II
Thanks for your help