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.
if [TENTATIVE REMOVAL DATE] <= Date.From(DateTime.LocalNow()) then Date.From(DateTime.LocalNow()) +1
else [TENTATIVE REMOVAL DATE])
*I want to replace any dates that are prior to today w/ tomorrow's date
I am getting this error:
Expression.Error: We cannot apply operator < to types Date and DateTime.
Details:
Operator=<
Left=10/5/2022
Right=9/22/2022 12:00:00 AM
Solved! Go to Solution.
Try this
if [TENTATIVE REMOVAL DATE] <= DateTime.LocalNow() then Date.AddDays(DateTime.LocalNow(),1) else [TENTATIVE REMOVAL DATE]
Proud to be a Super User! | |
Try this
if [TENTATIVE REMOVAL DATE] <= DateTime.LocalNow() then Date.AddDays(DateTime.LocalNow(),1) else [TENTATIVE REMOVAL DATE]
Proud to be a Super User! | |
That worked! Thank you so much!