Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I am trying to create a date filter so that the Gateway refresh should pull all data in the data model. In the report layer, the filter date should return current date minute 365 days rolling to display by default. How can i go about creating a filter of this nature? any help is appreciated.
Solved! Go to Solution.
Hi @Anonymous ,
First create a date table:
Date = CALENDAR("2021,1,1","2022,12,31")
Then use the below measure on the table:
FILTER = IF(MAX('Date'[Date])<=TODAY()&&MAX('Date'[Date])>=TODAY()-365,1,0)
Then create slicer like the below:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
Hi @Anonymous ,
First create a date table:
Date = CALENDAR("2021,1,1","2022,12,31")
Then use the below measure on the table:
FILTER = IF(MAX('Date'[Date])<=TODAY()&&MAX('Date'[Date])>=TODAY()-365,1,0)
Then create slicer like the below:
Did I answer your question? Mark my post as a solution!
Best Regards
Lucien
When i create this calendar table do i need to join it to my model?
Hi @Anonymous ,
Yes ,create relationship between your table and slicer table.
Best Regards
Lucien
User | Count |
---|---|
98 | |
87 | |
77 | |
67 | |
63 |
User | Count |
---|---|
110 | |
95 | |
95 | |
64 | |
58 |