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
Hello
Any idea why the Power Query below does not work?
#"Filter Today" = Table.Join(Table.TransformColumnTypes(Table.FromRecords({[Date = FormatDateTime.Date(DateTime.LocalNow())],[Date = Date.AddDays(DateTime.Date(DateTime.LocalNow()),-1)]}), {{"Date", type date}}, "en-US"), "Date", #"Changed Type", "Date"),
Thanks!
Solved! Go to Solution.
Hi @Anonymous
As @AlexisOlson mentioned, you need to replace FormatDateTime.Date() with DateTime.Date()
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
As @AlexisOlson mentioned, you need to replace FormatDateTime.Date() with DateTime.Date()
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
"FormatDateTime.Date" is not a valid function name.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!