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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Elina_Mirin
Helper I
Helper I

Does not Contain filter in Power Query removes NULL values

Hello! Does anybody know why 'Does Not Contain' filter in Power Query removes also null values, not only the value specified?

E.G.: I want to exclude the emails that contain "yahoo", but I want to keep the null values.

 

= Table.SelectRows(#"Filtered Rows", each not Text.Contains([Email], "yahoo"))

 

2 ACCEPTED SOLUTIONS
Ahmedx
Super User
Super User

watch my video and you will know how to solve the problem

https://1drv.ms/v/s!AiUZ0Ws7G26RhlWZ9AMUAAFdgqmG?e=venO0d

View solution in original post

Hi, you can wirte like this:

Table.SelectRows(#"Измененный тип", each not Text.Contains([data] , "yahoo") or [data]=null)

View solution in original post

3 REPLIES 3
Elina_Mirin
Helper I
Helper I

@Ahmedx thank you for this video! It's working now. Do you know why Power Query does this with null values? I can't find a logic explanation in any documentation provided.

Hi, you can wirte like this:

Table.SelectRows(#"Измененный тип", each not Text.Contains([data] , "yahoo") or [data]=null)

Ahmedx
Super User
Super User

watch my video and you will know how to solve the problem

https://1drv.ms/v/s!AiUZ0Ws7G26RhlWZ9AMUAAFdgqmG?e=venO0d

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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