Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

IF ISERROR WITH MORE THAN VALUES

Hi there, 

 

I'm looking for a way to select only the values that contains "B2B" & "BTOB" name them B2B and name the rest "B2C".

 

I tried this one but it doesn't work :

 

Column = IF(
    ISERROR(
        SEARCH("B2B" OR "BTOB", clixray_fr_reporting_export_campaigns_campaigns_results[tags])
    ),
    "B2C",
    "B2B"
)
 
The aim is : 
 
If it doesn't contain 'B2B' OR 'BTOB' --> B2C
Otherwise --> B2B
 
Can you please help me please ?
1 ACCEPTED SOLUTION

Hello again @othmanbelmouzo,

I didn't notice the word "contains" when I first read it.

What about this?

Payeras_BI_0-1607600775550.png

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain

View solution in original post

4 REPLIES 4
Payeras_BI
Super User
Super User

hi @Anonymous ,

 

Payeras_BI_0-1607599611007.png

 

Regards,

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Anonymous
Not applicable

Hi @Payeras_BI,

 

Thanks for your reply. Here's my search column values. As you can see this solution can't work because the values doesn't contain only B2B, BTOB etc... The aim is to ask Power BI to name look for the values that contains BTOB and B2B and name them B2B and name the rest B2C.

 

Capture d’écran 2020-12-10 123703.jpg

 

Hello again @othmanbelmouzo,

I didn't notice the word "contains" when I first read it.

What about this?

Payeras_BI_0-1607600775550.png

If this post answered your question, please mark it as a solution to help other users find useful content.
Kudos are another nice way to acknowledge those who tried to help you.

J. Payeras
Mallorca, Spain
Anonymous
Not applicable

Hi @Syndicate_Admin,

Thanks for your solution, it works for me 😉

Best regards,

Othman

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.