Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.