Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I would like to create a date filter which automatically changes todays date everyday and include data for +2 weeks and -2 weeks from todays date.
Hi @Anonymous,
As I know, we could create the relative date slicer like below.
In addition, if you have a calendar table, you could create the measure like below.
Measure = DATEADD('Table'[Date],-14,DAY) Measure2 = DATEADD('Table'[Date],14,DAY)
Here is the output.
Best Regards,
Cherry
Hello Cherry,
Thank you for your reply. But I have few doubts , regarding the date slicer using relative date filter. I am able to create that for two different date range, but once I do that I am not able to view any of my data in the visualization.
Second doubt,how did you create the table using the measure? I created a table with calendar date in one column and added your measure formula, but it ended up ina error message. I have attached the screenshot of it.
Let me know if you know the solution. Tnx!
Hi @Anonymous,
Sorry for the delay!
If it is convenient, could you share a dummy pbix file which can reproduce the scenario, so that we can help further investigate on it? You can upload it to OneDrive and post the link here. Do mask sensitive data before uploading.)
Best Regards,
Cherry
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |