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.
Hi,
I would like to set the date range filter default value to display last 7 days starting from max date in the available data.
Can anyone suggest how this can be done?
Thank you for your help.
Hi @sharc316
There are multiple ways to do this.
If you have a date table, you could create a column in the Query Editor which will look at the Max Date, and then go back 1 week or 7 days. And then you give this new column a value for example of "Last 7 Days" and for the else part you use "Older than 7 Days"
Then once this loads you can then use this column in your filter.
Another option is to do it using a measure, using the DATEDIFF
Thank you for the help. Will give it a try.
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 |
---|---|
112 | |
97 | |
83 | |
67 | |
61 |
User | Count |
---|---|
150 | |
120 | |
99 | |
87 | |
68 |