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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
peterf
New Member

Power Query

Hello community;

 

I am new to Power Bi and Power Query.

 

Below is my Power Query, which returns errors for each instance where there is no value in [assignee.emailAddress], how do I cater for this?

 

 

= Table.AddColumn(#"Removed Duplicates", "Vendor", each if Text.Contains([assignee.emailAddress], "xxxdata.com") then "xxxdata" else if Text.Contains([assignee.emailAddress], "xxxV1.com") then "xxxV1" else if Text.Contains([assignee.emailAddress], "xxxtechnologies.com") then "tech" else "null")

 

 

Thanks in advance

 

Peter

 

 

1 ACCEPTED SOLUTION
peterf
New Member

SOLVED

 

This appears to be an old issue going back to 2016 where "null" needs to be the first line in the IF statement, otherwise an error is thrown

View solution in original post

1 REPLY 1
peterf
New Member

SOLVED

 

This appears to be an old issue going back to 2016 where "null" needs to be the first line in the IF statement, otherwise an error is thrown

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.

Top Solution Authors