Forum Discussion
Running sum % help needed (from calculate)
- Anonymous3 years ago
Hi timurcakin ,
The last formula I gave was to accumulate in descending order by [No_], I have since realised that you may want to accumulate in descending order by [Order], please try this measure.
running total weighted volume% = VAR _order = [order] VAR _result = SUMX(FILTER(SUMMARIZE(ALLSELECTED('Sheet3'),'Sheet3'[No_],"OD",[order]),[OD]>=_order),[weighted vol %]) RETURN _resultBest Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hi timurcakin ,
Please try:
running total weighted volume% = SUMX(FILTER(ALLSELECTED('Sheet3'[No_]),'Sheet3'[No_]<=SELECTEDVALUE('Sheet3'[No_])),[weighted vol %])
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Hello Gao,
sorry for the late reply i was away.
i think the formula you have provided is taking the running total of weigted vol by sorting out items, not weigted volumes. 😞
- Anonymous3 years agoNot applicable
Hi timurcakin ,
The last formula I gave was to accumulate in descending order by [No_], I have since realised that you may want to accumulate in descending order by [Order], please try this measure.
running total weighted volume% = VAR _order = [order] VAR _result = SUMX(FILTER(SUMMARIZE(ALLSELECTED('Sheet3'),'Sheet3'[No_],"OD",[order]),[OD]>=_order),[weighted vol %]) RETURN _resultBest Regards,
Gao
Community Support TeamIf there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
- timurcakin3 years ago
Helper I
Hey Gao,
AMAZING thank you soooo much for this!
Seems very complex (for me :)) but you managed to sort it out so thank you very much for helping me.
all the best!