Forum Discussion
DAX Getting running total from Active orders
- 5 years ago
Thank you for the references,
I created a query which does what I wanted and I will post it here incase someone has a similar issue.
Running Total MEASURE 1 = CALCULATE ( SUM ( Sheet1[Price x Quantity] ), FILTER ( ALL ( 'Calendar Table' ), 'Calendar Table'[Date] <= MAX ( 'Calendar Table'[Date] ) ) ) - CALCULATE( SUM( Sheet1[Price x Quantity]), FILTER ( ALL ( Sheet1 ), Sheet1[DateOrderDue] <= MAX ( 'Calendar Table'[Date] ) ) )I created a link between my order date in my order book table & calendar table.
I then created a formula to get the cumulative total of all orders added onto the system.
I then created a formulat to subtract the date order due transactions against the calendar date.
AAMW01 , refer if one of the two can help you
How to divide/distribute values between start date or end date or count days across months/days: https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-or-end-date/ba-p/1503785
Or
- AAMW015 years ago
Helper I
Thank you for the references,
I created a query which does what I wanted and I will post it here incase someone has a similar issue.
Running Total MEASURE 1 = CALCULATE ( SUM ( Sheet1[Price x Quantity] ), FILTER ( ALL ( 'Calendar Table' ), 'Calendar Table'[Date] <= MAX ( 'Calendar Table'[Date] ) ) ) - CALCULATE( SUM( Sheet1[Price x Quantity]), FILTER ( ALL ( Sheet1 ), Sheet1[DateOrderDue] <= MAX ( 'Calendar Table'[Date] ) ) )I created a link between my order date in my order book table & calendar table.
I then created a formula to get the cumulative total of all orders added onto the system.
I then created a formulat to subtract the date order due transactions against the calendar date.