Forum Discussion
NikkiC
4 years agoFrequent Visitor
IF formula not working when creating a custom column
Hi
I am trying to compare two date columns to see if one is greater than the other. The formula I am trying to use is:
=IF([Training record completed date]>[training record Due Date], "Yes", "No")
The error message I get it Expression.Error. The name 'IF' wasn't recognised. Make sure it's spelled correctly.
I have no clue as to why it isn't working. Please can anyone offer me a solution?
Thanks
Nikki
The IF function is different in Power Query. Try this:
if [Training record completed date] > [training record Due Date] then "Yes" else "No"
2 Replies
- DataInsights
Super User
The IF function is different in Power Query. Try this:
if [Training record completed date] > [training record Due Date] then "Yes" else "No" - NikkiCFrequent Visitor
That worked thank you so much!