Reputation: 38
Hi DAX Experts around the world,
I hope you can help me with below problem. In short:
Is it possible at all as I am out of ideas ?
Thank you in advance. Max
Upvotes: 1
Views: 583
Reputation: 97
You can create a copy of the calendar table(Calender (2)
), which can be used to create a slicer.
With the help of this table, you can create a measure to calculate the value based on selected date like this:
Amount Measure =
VAR _selected_date = MAX('Calender (2)'[Date])
return SUMX(SUMMARIZE(Calender,Calender[Date]),IF('Calender'[Date]<_selected_date,SUMX(FILTER(Table1,Table1[Version]="Actual"),[Amount]),SUM(Table2[Amount])))
Upvotes: 0