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
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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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