Forum Discussion

NikkiC's avatar
NikkiC
Frequent Visitor
4 years ago
Solved

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 

  • NikkiC,

     

    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

  • NikkiC,

     

    The IF function is different in Power Query. Try this:

     

    if [Training record completed date] > [training record Due Date] then "Yes" else "No"