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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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
Top Kudoed Authors