Forum Discussion
Cumulative Total DAX
| Row Labels | Sum of Ext Qty | Cumulative Extr Qty Fails | Sum of DELIVERY_QTY_EXP | Extr DPM | Cumulative Extr DPM |
| 2015-11 | 224 | 223.7605022 | 222,282,787 | 1.0 | 1.0 |
| 2015-12 | 315 | 539.1262961 | 174,694,947 | 1.8 | 1.4 |
| 2016-01 | 262 | 801.1768099 | 177,758,655 | 1.5 | 1.4 |
| 2016-02 | 103 | 903.8266581 | 211,934,893 | 0.5 | 1.1 |
| 2016-03 | 3 | 906.8266581 | 197,277,294 | 0.0 | 0.9 |
| 2016-04 | 5 | 911.3928682 | 197,876,462 | 0.0 | 0.8 |
| 2016-05 | 0 | 0 | 158,747,508 | 0.0 | 0.0 |
| Grand Total | 911 | 911.3928682 | 1,340,572,546 | 0.7 | 0.7 |
When the Sum of Ext Qty = 0, then i want the Cumulative Extr Qty Fails to add that 0 and always show a Cumulative total. But it doesn't, it just shows 0. How do i modify my formula to always show running total, even if Sum of Ext Qty = 0?
My DAX formula:
Cumulative Extr Qty Fails:=calculate(if(sum('A'[Extrapolated Qty])=BLANK(),0,sum ('A'[Extrapolated Qty])),FILTER(ALLSELECTED ('A'),A[Year-Month]<=MAX ('A'[Year-Month])))
11 Replies
- SeanCommunity Champion
How do i modify my formula to always show running total, even if Sum of Ext Qty = 0?
My DAX formula:
Cumulative Extr Qty Fails:=calculate(if(sum('A'[Extrapolated Qty])=BLANK(),0,sum ('A'[Extrapolated Qty])),FILTER(ALLSELECTED ('A'),A[Year-Month]<=MAX ('A'[Year-Month])))
llavey I believe i answered your original Question...
And no I did not create any new columns.
All I did was change the MEASURE formula....