Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hey guys,
for a visualisation, I'm trying to set a time range for 10 days. This range is supposed to refresh itself as the days go by, showing only the last 10 days of the data table in the visualisation.
I tried to accomplish this using the DATEBETWEEN function, with TODAY()-1 and TODAY()-10 as the date range. Unfortunately, DATEBETWEEN function won't allow using the TODAY parameter for this.
Do you guys have an idea how to solve this problem? Right now, the visualisation is modified with a static date filtre which has to be renewed every day.
DATESBETWEEN() certainly allows TODAY() with arithmetic as an argument. What error are you seeing when you try this?
DATESBETWEEN() does require a proper date dimension with consecutive, non-repeating dates.
// DAX
// fragment
DATESBETWEEN(
DimDate[Date]
,TODAY() - 10
,TODAY() - 1
)
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |