Forum Discussion
Anonymous
6 years agoNot applicable
Formula error: Expression.Error. The name 'IF' wasn't recognized. Make sure it's spelled correctly.
I'm using Power Query Editor to create a new column using an if statement. I used the conditional column to create the formula but now I get the below error. How can I fix this If then statement? Se...
- 6 years ago
Anonymous ,
Modify the formula as below:
= Table.AddColumn(#"Renamed Columns2", "Custom", each if [Loading Date] > DateTime.LocalNow() then [Loading Date] else DateTime.LocalNow())Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
6 years agoNot applicable
Syntax and function is different for M...an example is shown below
if [FullDateAlternateKey] = Date.From(DateTime.LocalNow()) then [FullDateAlternateKey] else Date.From(DateTime.LocalNow()))