Forum Discussion
Cumulative total for my data model
- Anonymous5 years ago
Hi Anonymous ,
Please refer the formula.
Measure = CALCULATE(SUM('Table'[value]),FILTER(ALLSELECTED('Table'),'Table'[index]<=MAX('Table'[index])))Result would be shown as below.
Best Regards,
Jay
amitchandak the months on x axis are from value month column.
So from each month we have 12 value months, index represents value month in fiscal numbering.
so I need for every month there should be a cumulative total till that value month
eg., for month apr chart 2 shows value month apr
for month may chart 2 shows value month apr and apr+may
for month jun chart 2 shows value month apr , apr+may and apr+may+jun
I you get this data model please help me
Anonymous , That is like YTD, Better create a date table and use YTD
YTD = CALCULATE(SUM(Table[Value]),DATESYTD('Date'[Date],"3/31"), filter(Table, Table[Type] = "ACTUAL+FORECAST")) //end of year is march