Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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
Solved! Go to Solution.
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
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