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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi,
I am entering this formula in a custom column inside power query editor:
What am I doing wrong please?
Thanks
Solved! Go to Solution.
Hi @mp390988 , the if you wrap around the "11:00:00" in TimeFromText(), it should work. Thanks!
Code:
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type datetime}, {"Time", type time}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each if [Time] >= Time.FromText("11:00:00") then "Yes" else "No")
in
#"Added Custom"
In your formula, replace 11:00:00 with #time(11, 0, 0)
or Time.FromText("11")
In your formula, replace 11:00:00 with #time(11, 0, 0)
or Time.FromText("11")
Hi @mp390988 , the if you wrap around the "11:00:00" in TimeFromText(), it should work. Thanks!
Code:
let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Date", type datetime}, {"Time", type time}}),
#"Added Custom" = Table.AddColumn(#"Changed Type", "Custom", each if [Time] >= Time.FromText("11:00:00") then "Yes" else "No")
in
#"Added Custom"
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.