Forum Discussion
rwilcox
10 years agoNew Member
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...
- Anonymous10 years ago
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
- 10 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]
MattAllington
10 years agoCommunity Champion
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]