Forum Discussion
YTD graph until selected month
- Anonymous7 years ago
Anonymous,
Please create a new date table using dax below. Please note that there is no relationship between the new date table and other table.Calendar = CALENDARAUTO()
Then create the following measures in your table.
YTD = TOTALYTD([Total Turnover MSCI];'Date'[Date])
NewMeasure= var Ldate = MAX('Calendar'[Date])//Last date return if(min('Date'[Date])<=Ldate; [YTD])
At last, use date field of the new date table('Calendar'[Date]) to create slicer, create a line chart using 'Date'[Date] field and NewMeasure.
Regards,
Lydia
Anonymous,
Please create a new date table using dax below. Please note that there is no relationship between the new date table and other table.
Calendar = CALENDARAUTO()
Then create the following measures in your table.
YTD = TOTALYTD([Total Turnover MSCI];'Date'[Date])
NewMeasure= var Ldate = MAX('Calendar'[Date])//Last date
return
if(min('Date'[Date])<=Ldate;
[YTD])
At last, use date field of the new date table('Calendar'[Date]) to create slicer, create a line chart using 'Date'[Date] field and NewMeasure.
Regards,
Lydia
Anonymous i tried your solution and i do get a dynamic chart that displays data up to the month selected in the slicer but the displayed data points are filtered based on the context ie every month i see the total not the cumulative amount as it builds up month by month. is there a way to do this and have a dynamic line chart that builds up month by month?