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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors