Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
Is there a way pre-filter dates? I want my data to get filtered by rolling 30 days.
I want the user to have an option to change the filter if needed and look for broader time period. But by default when the user opens the link he should see only 30 days since those are most relevant.
My report is automatically refreshed everyday.
Regards
Solved! Go to Solution.
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 Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 Chen
If 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
Thanks! Can this filter be removed by the customers later, if they want to expand the date field?
Yup. The filter visual looks like this:
They can just clear the filter and it'll open the report to all month, quaters, etc.
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.
Yes, I made buckets and that's what makes it dynamic.
Whenever the report is refreshed the calculated column is recalculated potentially moving the current quarter.
You'll need to do something similar and switch from the Date slicer to a 'regular' slicer to handle the dynamism.
But buckets don't serve our business purpose. We need to drill down to the date level in historical data too.
If I have both bucket and date filter, the User Experience is really bad.
Since date selector shows different dates and the bucket filter shows something else. 😞
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 60 | |
| 43 | |
| 40 | |
| 37 | |
| 21 |
| User | Count |
|---|---|
| 178 | |
| 127 | |
| 115 | |
| 77 | |
| 54 |