This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
Greetings Everyone.
I am trying to create a formula in a new calculated column
Basically what I am trying to do is:
IF (text.in.row contains "ABC", "ABC") OR (text.in.row contains "EFG", "EFG") OR (text.in.row contains "XYZ", "XYZ")
I did stumble upon this formula:
CustomColumn = IF(
ISERROR(
SEARCH("A", TableName[ColumnName])
),
"A",
"B"
)Which did work for the first argument, but, the only issue is, it's not letting me do multiple IFs or multiple scenarios.
Appreciate any help I can get. Doesn't have to be this particular formula, any formula to get me there would help
Solved! Go to Solution.
Something like this should work for you.
Column =
IF ( CONTAINSSTRING ( Table[Column], "ABC" ),"ABC",
IF ( CONTAINSSTRING ( Table[Column], "EFG" ),"EFG",
IF ( CONTAINSSTRING ( Table[Column], "XYZ" ), "XYZ", "" )
)
)
Something like this should work for you.
Column =
IF ( CONTAINSSTRING ( Table[Column], "ABC" ),"ABC",
IF ( CONTAINSSTRING ( Table[Column], "EFG" ),"EFG",
IF ( CONTAINSSTRING ( Table[Column], "XYZ" ), "XYZ", "" )
)
)
You ... my friend ... are a life saver !!! It worked perfectly.
Hi,
It will be ideal to create a Table with 2 columns - one listing all your search keywords and another listing all results you want to see when those search keywords are found in your Text column. Please share your source data (could be dummy data) and this 2 column Table.
Thanks for your help Ashish.
Check out the May 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 |
|---|---|
| 32 | |
| 25 | |
| 24 | |
| 24 | |
| 13 |
| User | Count |
|---|---|
| 61 | |
| 47 | |
| 27 | |
| 24 | |
| 19 |