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

View all the Fabric Data Days sessions on demand. View schedule

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.