Forum Discussion

rwilcox's avatar
rwilcox
New Member
10 years ago
Solved

Adding custom column

I am trying to write the if then statement for adding a new column.   If the country column is null then return "USA" or return the value from the country column   I thought I had the statement w...
  • Anonymous's avatar
    Anonymous
    9 years ago

    rwilcox

     

    Th formula for the NewCountryColumn should be like

     

    =IF(isblank([Country]),"USA",[Country])

     

    If this works please accept this as a solution and also give KUDOS.

     

    Cheers

     

    CheenuSIng

  • MattAllington's avatar
    9 years ago

    Are you doing this in Get Data or DAX?   I recommend the former. 

    The if statement in Power Query is written as follows

     

    = if [country] is null then "USA" else [country]