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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
Solved! Go to Solution.
The IF function is different in Power Query. Try this:
if [Training record completed date] > [training record Due Date] then "Yes" else "No"
Proud to be a Super User!
That worked thank you so much!
The IF function is different in Power Query. Try this:
if [Training record completed date] > [training record Due Date] then "Yes" else "No"
Proud to be a Super User!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 36 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |