Forum Discussion
Running total for month
- 4 years ago
Hi, refint_650
I think I can understand what you mean. Order Count is the Measure to calculate Order ID. How to calculate the cumulative summation of Order Count when Order Count is Measure.
You can try the following methods.
Maesure:
Cumulative = CALCULATE ( SUMX ( VALUES ( 'Table'[Month No] ), [Order Cou] ), FILTER ( ALLSELECTED ( 'Table' ), [Month No] <= MAX ( 'Table'[Month No] ) ) )Order Cou in my table is Measure.
Best Regards,
Charlotte Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate for respone.
My table has year, month ,date, order id. year slicer only.
1st step i did measure which count(orderid) -which calculates count of order id's per each month.
i couldnt figure how to sum jan +feb counts in a cumulative untill max month.
thank all
vs
refint_650 , Count of order id should help
CALCULATE(Count(Table[order id ]), filter(All('Date'), 'Date'[Date]<= max('Date'[Date] ) ) )
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
- refint_6504 years ago
Helper I
attaching sample dataset. i couldnt attach excel file.
- v-zhangti4 years ago
Community Support
Hi, refint_650
I think I can understand what you mean. Order Count is the Measure to calculate Order ID. How to calculate the cumulative summation of Order Count when Order Count is Measure.
You can try the following methods.
Maesure:
Cumulative = CALCULATE ( SUMX ( VALUES ( 'Table'[Month No] ), [Order Cou] ), FILTER ( ALLSELECTED ( 'Table' ), [Month No] <= MAX ( 'Table'[Month No] ) ) )Order Cou in my table is Measure.
Best Regards,
Charlotte Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.