Forum Discussion
help on filtering
- 7 years ago
Please check the file.
https://www.dropbox.com/s/3svdbxr8akcfctc/filter.pbix?dl=0
Issues are with the data type.
amitchandak but the values are wrong are the new last 12 mths?
Calc of 12 month is correct. Currently, the calendar end date is 31-Dec-2019. So max of that has been taken. Now there two options.
1. when you have a slicer, it will respond to that. I checked it
2. Or in the max, you can use the max of sales date.
- Anonymous7 years agoNot applicable
amitchandak hi,the value of last12 mths is based on all products?
i tried using adding product filter but the salechange value doesnt change and the last12 mths sale value wrong.
- amitchandak7 years ago
Super User
Remove all(DATA1) from the formula. I added that when I did not realize that edit interaction casing issue.
Last 12 Mths New = VAR _Curr_start = Maxx(dates,DATEADD(STARTOFMONTH(Dates[Date]),-11,MONTH)) VAR _Curr_END = Max(Dates[Date]) Return CALCULATE(sum(DATA1[Value]),DATA1[Date]>=_Curr_start && DATA1[Date]<=_Curr_END)
- Anonymous7 years agoNot applicable
amitchandak
I not sure where i gone wrong, but i cant get the value for last12mth correctly.I am trying to get product A, Jan to Dec 2018 sale total = 824
Can you advice? Thanks so much.