Forum Discussion
Cumulative Sum Table
- 2 years ago
It seems to me that I have the solution, although there is always room for improvement, I share the file with you.
As I said at the beginning, I managed to do it with a row_number as an id, I still don't know if it's the best solotion, but it seems to funionize.
Thank you very much in advance for the help and I hope you can be helpful.
This type of table is very useful if you want to create time series with the maturation of different years.I look forward to hearing from you.
Thank you very much in advance.
Hi,
Create a Calendar Table with calculated column formulas for Year, Month name and Month number. Sort the Month name column by the Month number. Create a relationship (Many to One and Single) from the Date column of your Data Table to the Date column of the Calendar Table. To your matrix visual, drag Month name to the row labels and year to the column labels. Write these measures
Measure = sum(Data[Amount])
YTD = calculate([Measure],datesytd(calendar[date],"31/12"))
Hope this helps.