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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Daro68
Frequent Visitor

Exclude a value if 2 conditions are met

Hi There,

2020-11-09 14_03_47-Window.png

I'm trying to exclude a value if 2 conditions are met.

In the example you'll find a Value, VRA, Salesperson and a Result column. Obviously the result column is what I'm trying to achieve but I can't figure it out.

If the condition VRA=yes and Salesperson does not contain -KEY the value should be excluded from the column.

 

Can anyone help me with this one please?

Thank you so much.

D.

1 ACCEPTED SOLUTION
Payeras_BI
Solution Sage
Solution Sage

Hi @Daro68 ,

 

Try with this calculated column

 

Payeras_BI_0-1604928969996.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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Daro68 , Try a new column like

if(search("VRA",[VRA],,0) >0 && search("KEY",[salesperson],,0)<=0, "Yes", "No")

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Payeras_BI
Solution Sage
Solution Sage

Hi @Daro68 ,

 

Try with this calculated column

 

Payeras_BI_0-1604928969996.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

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.