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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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