Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi Experts
how would you write the following If else formula for a custom column in Power Query
Currency = if [storeid] =1 then "GBP" elseif
[storeid] = 2, then "Eur" elseif
[storeid = 3 then "IRE" elseif
[storeid] = 4 then "USD"
Solved! Go to Solution.
Hi @Anonymous ,
You can write it something as follows:
if [storeid] = 1 then "GBP"
else if [storeid] = 2, then "Eur"
else if [storeid = 3 then "IRE"
else if [storeid] = 4 then "USD"
else " "
Thanks,
Pragati
Hi @Anonymous ,
You can write it something as follows:
if [storeid] = 1 then "GBP"
else if [storeid] = 2, then "Eur"
else if [storeid = 3 then "IRE"
else if [storeid] = 4 then "USD"
else " "
Thanks,
Pragati
Many Thanks
Hi @Anonymous
You were very close:
if [storeid] =1 then "GBP" else if
[storeid] = 2 then "Eur" else if
[storeid] = 3 then "IRE" else if
[storeid] = 4 then "USD" else null
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
104 | |
78 | |
68 | |
61 |
User | Count |
---|---|
144 | |
106 | |
106 | |
82 | |
70 |