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 keep the above error even after changing data type to Date.Trying to create a new custom column based on another column.
This was the excel formula
=IF(AND(AM2="M",OR(AL2="",AL2<TODAY()+1))," PCF","")
I created the power query(M Code) for this but it's throwing an error.
Any ideas how I can get around this?
Many thanks for all help
Hi @Dev-001
Use Date.AddDays(Date.From(DateTime.LocalNow()), 1)
Note: Power BI Servie uses UTC so take that into consideration when using functions that gets the current time. I use the formula below to convert a UTC date to my current time zone.
Date.From(DateTime.From(DateTimeZone.RemoveZone(DateTimeZone.UtcNow()) + #duration(0,8,0,0)))
//replace +/8 with your UTC offset
Rather than checking < today + 1 do a check for <= today.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.