Forum Discussion
Cummulative sum using a different dataset date field
I have two datasets here i have one Amount field and one date field in each dataset. I have created two measures which gives me the cummulative sum in each dataset.
Table1:
| Date | Amount | Cummulative |
| 11/16/2019 | 50 | 50 |
| 11/23/2019 | 60 | 110 |
| 11/30/2019 | 70 | 180 |
| 12/1/2019 | 10 | 190 |
Table 2:
| Date | Amount | Cummulative |
| 11/16/2019 | 60 | 50 |
| 11/23/2019 | 60 | 120 |
| 11/30/2019 | 50 | 170 |
| 12/1/2019 | 30 | 200 |
Cummulative Sum is coming correct in both the tables But the issue is:
When I do the Line graph adding both cummulatives measures in Values and date field from one of the table. then the cummulative is not working for one of them. that is I'm getting the Actual amount instead of cummulative measure for one of the table.
Hi Anonymous ,
you need a date table with relations to both tables.
Regards,
Marcus
Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support.
3 Replies
- mwegener
Most Valuable Professional
Hi Anonymous ,
you need a date table with relations to both tables.
Regards,
Marcus
Dortmund - Germany
If I answered your question, please mark my post as solution, this will also help others.
Please give Kudos for support. - amitchandak
Super User
I hope you had the date table.
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.
Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions - V-lianl-msft
Community Support