Forum Discussion
Sum value for three month based on slicer
- 3 years ago
It is not fixing, with "SELECTEDVALUES" nothing is selected.
Here is a simmplified pbix file, with the xlsx data source for 'Sales' table : download link (I can not attach file on the forum)
As you can see, only the first occurence is selected (for Canada, only the first row for 1st January 2014 is selected, wheras I want all rows).
Many Thanks
Hi notrop8 ,
This link shows "The transfer you requested has been deleted".Please provide a valid pbix file.
You can place the 'Calendar'[Date] field on the slicer and select it, then create a separate measure Measure=SELECTEDVALUE('Calendar'[Date]) and see his result, if he is invalid please try
Measure M to M+2 Value =
VAR selected_date = Min('Calendar'[Date])
RETURN
CALCULATE(
SUM('sales'[value]),
FILTER(ALL('sales'),
'sales'[country]=MAX('sales'[country])&& 'sales'[due_date] >= selected_date && 'sales'[due_date] <= EOMONTH(selected_date , 2)))
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.