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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
CiaraCaryl
Frequent Visitor

Need help with If then statement

Basically I need something that shows the following:

If MQL is NOT blank, then "MQL"
If SDR is NOT blank and AE is NOT Blank then "SDR Self Gen"
If SDR IS blank and AE is NOT blank then "AE Self Gen"

This is the formula I've been trying but keep getting errors:

Gen Team = IF(Opportunity[Leads Converted.MQL__c] <> BLANK(), "MQL")
&& IF(Opportunity[SDR Name]<>BLANK() && Opportunity[AE Name]<>BLANK(), "SDR Self Gen")
&& IF(Opportunity[SDR Name]=BLANK() && Opportunity[AE Name]<>BLANK(), "AE Self Gen", "Other Gen")
1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Gen Team = SWITCH(TRUE(),
Opportunity[Leads Converted.MQL__c] <> BLANK(), "MQL",
Opportunity[SDR Name]<>BLANK() && Opportunity[AE Name]<>BLANK(), "SDR Self Gen",
Opportunity[AE Name]<>BLANK(), "AE Self Gen",
"Other Gen")

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

Gen Team = SWITCH(TRUE(),
Opportunity[Leads Converted.MQL__c] <> BLANK(), "MQL",
Opportunity[SDR Name]<>BLANK() && Opportunity[AE Name]<>BLANK(), "SDR Self Gen",
Opportunity[AE Name]<>BLANK(), "AE Self Gen",
"Other Gen")

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.