Forum Discussion
singhswat
10 years agoFrequent Visitor
Date Comparison
Hi This might sound silly but I'm not able to get around this problem. = If (StartDate > Today()) then "Hello" Else "Bye" Now() / Today () function just doesn't work Thanks for the...
- 10 years ago
Try with this
if [Calendar] > DateTime.Date(DateTime.LocalNow()) then "Hello" else "Bye" )
Vvelarde
10 years agoCommunity Champion
Are you in Query Editor?
singhswat
10 years agoFrequent Visitor
Yes and adding a new column in query editor
- kcantor10 years agoCommunity Champion
In Query Editor, capitilaization matters. Use if instead of If in your original statement.
Here is more information on IF http://www.excelguru.ca/blog/2014/08/27/the-if-function-in-power-query/
- Vvelarde10 years agoCommunity Champion
Try with this
if [Calendar] > DateTime.Date(DateTime.LocalNow()) then "Hello" else "Bye" )