Forum Discussion
ACCUMULATED BY ORDER
Greetings to all.
I'm looking to make the cumulative by established order (ORDER), I've calculated it by date but I can't find the way to calculate it with a "Range" or order Number
This is my board...
| ORDER | REQUESTED | ACCUMULATED | |
| 3 | 119002 | 131282 | |
| 6 | 12280 | 143562 | |
| 7 | 33264 | 176826 | |
| 9 | 10255 | ETC… | |
| 10 | 8442 | ||
| 11 | 6514 | ||
| 13 | 2471 | ||
| 16 | 24960 | ||
| 18 | 13110 | ||
| 19 | 14437 | ||
| 20 | 32762 | ||
| 21 | 1873 | ||
| 22 | 21253 | ||
| 23 | 25052 | ||
| 25 | 16140 | ||
| 26 | 11303 | ||
| 27 | 6195 | ||
| 28 | 16206 | ||
| 29 | 6245 | ||
| 30 | 4563 | ||
| 31 | 5900 | ||
| 33 | 4048 | ||
| 36 | 630 | ||
| 40 | 10720 | ||
| 41 | 16032 | ||
| 42 | 4370 | ||
| 43 | 2887 | ||
| 44 | 3124 | ||
| 45 | 20198 | ||
| 48 | 4887 | ||
| 49 | 20549 | ||
| 50 | 16642 | ||
| 51 | 43446 | ||
| 55 | 23455 | ||
| 58 | 10080 | ||
| 59 | 11100 |
Hi Syndicate_Admin
You can use something like:acc_requested =VAR order_= SELECTEDVALUE('Table'[ORDER])RETURNCALCULATE( SUM('Table'[REQUESTED]), 'Table'[ORDER]<= order_,all('Table'[ORDER]))or use a window function like on the tutorial:
https://www.youtube.com/watch?v=y9KPE6Hd1wM
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi, Syndicate_Admin
You can try the following methods.
Measure:Measure = CALCULATE(SUM('Table'[REQUESTED]),FILTER(ALL('Table'),[ORDER]<=SELECTEDVALUE('Table'[ORDER])))ACCUMULATED = MINX(FILTER(ALL('Table'),[ORDER]>SELECTEDVALUE('Table'[ORDER])),[Measure])Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 Replies
- Ritaf1983
Super User
Hi Syndicate_Admin
You can use something like:acc_requested =VAR order_= SELECTEDVALUE('Table'[ORDER])RETURNCALCULATE( SUM('Table'[REQUESTED]), 'Table'[ORDER]<= order_,all('Table'[ORDER]))or use a window function like on the tutorial:
https://www.youtube.com/watch?v=y9KPE6Hd1wM
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
- v-zhangti
Community Support
Hi, Syndicate_Admin
You can try the following methods.
Measure:Measure = CALCULATE(SUM('Table'[REQUESTED]),FILTER(ALL('Table'),[ORDER]<=SELECTEDVALUE('Table'[ORDER])))ACCUMULATED = MINX(FILTER(ALL('Table'),[ORDER]>SELECTEDVALUE('Table'[ORDER])),[Measure])Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.