Forum Discussion
Filter a report using query string for relative dates
- 6 years ago
Hi Anonymous ,
How about to use filter on this visual?
Days = VAR x = CALCULATE( LASTDATE('Table'[Date]), ALL('Table'[Date]) ) RETURN DATEDIFF( MAX('Table'[Date]), x, DAY )Even if your data is updated daily, only the last 30 days will be displayed.
If you want to display longer data, you need to modify the filter.
Best regards,
Lionel ChenIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Sure. I have a few reports that filter "Current Month" or "Current Quarter".
I just build a custom column that checks like
- Anonymous6 years agoNot applicable
Thanks! Can this filter be removed by the customers later, if they want to expand the date field?
- Aron_Moore6 years agoSolution Specialist
Yup. The filter visual looks like this:
They can just clear the filter and it'll open the report to all month, quaters, etc.
- Anonymous6 years agoNot applicable
I see! But you have made buckets in your time. Mine is a date slicer like below. I want to provide 30-day dynamic filter.