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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi there,
I'm trying to filter a 'pure' date column in power query (formatted as date, without the time).
I need to filter the dates to only include entries from 01/01/2018 until the end of the current month (this part has to stay dynamic).
I tried various combinations, but can't get it to work.
Could someone please help?
Thanks,
Nigel
Solved! Go to Solution.
The challenge is to properly convert between data types Date and DateTime:
= Table.SelectRows(#"previousStep", each [Date] >= #date(2018, 1, 1) and [Date] <= Date.EndOfMonth(DateTime.Date(DateTime.LocalNow())))
The challenge is to properly convert between data types Date and DateTime:
= Table.SelectRows(#"previousStep", each [Date] >= #date(2018, 1, 1) and [Date] <= Date.EndOfMonth(DateTime.Date(DateTime.LocalNow())))
Hi there,
Thanks very much. It worked perfectly.
What if the field is a DateTime?
Much appreciated.
It's pretty much the same. Just make sure to convert your filter criteria according to the columns data type.
Date to DateTime: DateTime.From(#date(2018, 1, 1))
DateTime to Date: DateTime.Date(DateTime.LocalNow())
https://learn.microsoft.com/en-us/powerquery-m/datetime-date
https://learn.microsoft.com/en-us/powerquery-m/datetime-from
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 30 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 88 | |
| 73 | |
| 38 | |
| 26 | |
| 25 |