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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.