Forum Discussion
Help with DAX
- 12 days ago
Hi Lio123,
As per your requirements, I tried to create cumulative sum and please find the attached pbix file with that solution.
Best Regards,
Maruthi
I wouldn't solve this problem just in DAX, I'd create a new table containing customer, date and amount, with a row for each month a customer has a MRC. You could generate that in Power Query or SQL, and then the DAX measure becomes a simple SUM over the new table.
Having an entry per customer per month means that you would be able to show which customers contributed to a given month.
- Lio12316 days ago
Advocate I
johnt75 I have dim tables for customers, date and fact with customer, MRC amount, MRC billing start date and contract period. Now I want to calculate the total MRC for each month.
- johnt7516 days ago
Super User
That sounds like a good set up. Use the fact table as the basis to generate a new fact table, linked to the same dimensions, with one entry per month per customer for the duration of the contract period.