This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I want to keep the rows where the value is before today. The filter needs to be dynamic, so the today filter must change to the current date.
This is the column for the filter.
Who can help me out?
Thanks
Solved! Go to Solution.
Hi @Anonymous ,
If it is in Power Query you can use this code as today's date:
Date.From(DateTime.LocalNow())
In the query editor, filter the column to any date desired and replace the part of the formula which looks like this:
= #date(2023,1,1) //note: do not delete the ) after this.
with
<=Date.From(DateTime.LocalNow())
DateTime.LocalNow() is equivalent to NOW() in DAX or Excel. Since we need to get jus the date component, we then wrap it with Date.From()
Hi @Anonymous ,
If it is in Power Query you can use this code as today's date:
Date.From(DateTime.LocalNow())
In the query editor, filter the column to any date desired and replace the part of the formula which looks like this:
= #date(2023,1,1) //note: do not delete the ) after this.
with
<=Date.From(DateTime.LocalNow())
DateTime.LocalNow() is equivalent to NOW() in DAX or Excel. Since we need to get jus the date component, we then wrap it with Date.From()
@Anonymous Please Share Your ENDOUTPUT in table!THANK YOU!!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 39 | |
| 28 | |
| 28 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 37 | |
| 32 | |
| 27 | |
| 25 |