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
Elina_Mirin
Helper II
Helper II

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 II
Helper II

@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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors