Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
I am trying to filter my records to only select those records where the due date <= todays date.
I have the following:
= Table.SelectRows(#"Renamed Columns", each [DUE_DATE] <= DateTime.Date(DateTime.LocalNow))
However I am getting "Expression.Error: The DateTime.Date function expects and input of type DateTime or DateTimeZone"
My DUE_DATE field I change to type date.
Solved! Go to Solution.
DateTime.LocalNow is a function so you need to call it with brackets, DateTime.LocalNow()
DateTime.LocalNow is a function so you need to call it with brackets, DateTime.LocalNow()
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
103 | |
63 | |
45 | |
37 | |
35 |