Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
How can I get cumulative difference as below?
| Qty | Cumulative difference |
| 105 | - |
| 111 | -6 |
| 23 | 88 |
| 45 | -22 |
| 100 | -55 |
| 76 | 24 |
| 45 | 31 |
| 63 | -18 |
Solved! Go to Solution.
So, you need to just reverse the order Cumulative Difference =([Prev])-CALCULATE(sum('Cumulative Diff'[Qty])) here, right?
>> Keep Calculate first
Regards,
Ritesh
Hi ,akakapoor,
NOTE: Add a custom index column first Creating an Index column using a Power Query - Power BI Docs
Step 1
@ribisht17 I tried with the above and I am getting below view as per my data-
The dates are rolling14 days. This is giving me opposite output, example-Bins Count OUT were more than the previous day, so basically 22 more were completed than previous day, but this is showing -22.
How can I make it Positive?
So, you need to just reverse the order Cumulative Difference =([Prev])-CALCULATE(sum('Cumulative Diff'[Qty])) here, right?
>> Keep Calculate first
Regards,
Ritesh
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 56 | |
| 40 | |
| 38 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 141 | |
| 105 | |
| 63 | |
| 36 | |
| 35 |