Forum Discussion
Power Query if statement with condition dependent on Language format
Hi Anonymous ,
You were almost there.
if [SourcePropertyDisplayName] = "Global IOS App US/UK" and Text.Start([Language], 2) = "fr" then "Global Global IOS App US/UK French" else "Global IOS App US/UK English"
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos πare nice too.
Nathaniel
Thanks so much Nathaniel! If I have let's say 3 sourceNames as I mentioend above, do i keep repeating the if then statement 3 times or nest it somehow?
- Nathaniel_C6 years agoCommunity Champion
Hi Anonymous ,
if [SourcePropertyDisplayName] = "Global IOS App US/UK" and Text.Start([Language], 2) = "fr" then "Global Global IOS App US/UK French" else if [SourcePropertyDisplayName] = "x" then "y" else "Global IOS App US/UK English"Yes, so I added another condition if x then y in between. Look at the picture, shows you three results. If you are getting into this, let me recommend KenPuls book, M is for (DATA) Monkey. Easy read and really useful.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos πare nice too.
Nathaniel