March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
User | Count |
---|---|
90 | |
89 | |
85 | |
73 | |
49 |
User | Count |
---|---|
169 | |
144 | |
90 | |
70 | |
58 |