This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi everyone,
I would like to add a new step in my table with "IF containsstring" function.
I mean :
Currently i use "if([main table]="text","text",[resultat from on other table].
I tried with the formula "Containsstring" combined with IF but the result is not clear (message error bellow).
I am not sur but in "create new step" logic is different and i tried to work with "if, then, else"
I try to combine 2 data that come from 2 different columns
It doesn't seem to work.
I hope I am clear.
Thank you in advance for your help,
LD
Solved! Go to Solution.
PQ is super case sensitive.
Following changes are required
1. IF needs to be replaced with if
2. = in Text.Contains needs to be replaced with comma
Hence, in your custom column, you need to input following
= if Text.Contains([#"Format commercial regroupé"],"DIGITAL") then "DOOH" else [#"Type d'activité"]
IF in power query should be "if" (lowercase) and IF in DAX is uppercase. I appreciate this is confusing, has caught me out a few times too.
The "=" sign won't work as Text.Contains takes in two parameters (seperated by a column). Just replace the "=" with a "," and you'll be all good. Good luck!
Hi @LD1 ,
Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.
Best Regards,
Stephen Tao
Hi @LD1 ,
Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.
Best Regards,
Stephen Tao
IF in power query should be "if" (lowercase) and IF in DAX is uppercase. I appreciate this is confusing, has caught me out a few times too.
The "=" sign won't work as Text.Contains takes in two parameters (seperated by a column). Just replace the "=" with a "," and you'll be all good. Good luck!
PQ is super case sensitive.
Following changes are required
1. IF needs to be replaced with if
2. = in Text.Contains needs to be replaced with comma
Hence, in your custom column, you need to input following
= if Text.Contains([#"Format commercial regroupé"],"DIGITAL") then "DOOH" else [#"Type d'activité"]
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |