Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
Check it out now!Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Any help on adjusting this code to get rid of this error would be appreciated. If I click on "error" in the custom column, the error message is below. But not sure how to adjust the formula to get rid of this error.
The formula itself does not show an error, but clearly it's not working:
if
([Customer Requested Ship Date]) >= Date.StartOfMonth(Date.AddMonths([Locked File Month]), 2)
and
([Customer Requested Ship Date]) <= Date.EndOfMonth(Date.AddMonths([Locked File Month]), 2)
then "True"
else "False"
Solved! Go to Solution.
Probably one of your date columns has a null. Try inserting this immediately after your if
[Customer Requested Ship Date] <> null and [Locked File Month] <> null and
You closed your parentheses for Date.AddMonths before specifying how many months to add.
Try this:
if
[Customer Requested Ship Date] >= Date.StartOfMonth(Date.AddMonths([Locked File Month], 2))
and
[Customer Requested Ship Date] <= Date.EndOfMonth(Date.AddMonths([Locked File Month], 2))
then "True"
else "False"
Hi @AlexisOlson That seems to have worked! But getting one issue: It does return True or False, but if I "load all" I see an error that says "expression.error we cannot convert the value null to type logical" Any idea what that is about?
Probably one of your date columns has a null. Try inserting this immediately after your if
[Customer Requested Ship Date] <> null and [Locked File Month] <> null and