Forum Discussion

kirabray's avatar
kirabray
Regular Visitor
3 years ago

Running Total with Two Columns

Hello!

 

I am having trouble writing the DAX for a running total of ordered units. I need to see them by date but also by customer. I have the DAX working for by date: 

Required RT = CALCULATE(SUM(FACT_Backorders[Order Quantity]),FILTER(ALL(FACT_Backorders[Delivery Date]), FACT_Backorders[Delivery Date] <=MAX(FACT_Backorders[Delivery Date])))

But when drilling down to customer I lose the running total:

Any advice on how to include customer so I will see a running total overall for the material? Thanks in advance!