Check if Column Contains Item from List in Power Query - Create Text.ContainsAny!

Check if Column Contains Item from List in Power Query - Create Text.ContainsAny!

BI Gorilla

2 года назад

71,456 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@CK-vz4je
@CK-vz4je - 30.12.2023 07:25

How do i combine the lists count with list contains. I want to create a tag based on a bunch of key words. But max count of the category will be the main tag.

Ответить
@user-vy2mh8me4n
@user-vy2mh8me4n - 13.12.2023 15:57

This is awesome. It just solved me a problem I wasn't able to do. I spent too much time on something I knew wasn't that complicated but couldn't figure it out. And that is was part of a major tool to reduce report output for our team, saving is major headache ! Thank you again !

Ответить
@einoconsult5563
@einoconsult5563 - 26.10.2023 08:40

Thanks Rick, let me ask you a question. How can we tweak your solutions for a partial lookup in the list itself. Let's say on your master table with all the names you have two similar names like Carl and Carlos, and in your list you want to look for for any name that contain Carl. Can you tweak it ?

Ответить
@malchicken
@malchicken - 18.10.2023 06:16

👏

Ответить
@MathTutorVideos
@MathTutorVideos - 12.10.2023 23:18

How about if you have a list as a query? That's what I came here to find out. How would I prefer a list called say 'ABC' in Power Query's list of Queries?

Ответить
@rrrraaaacccc80
@rrrraaaacccc80 - 10.10.2023 01:54

💯👍

Ответить
@nishantkumar9570
@nishantkumar9570 - 26.08.2023 07:52

Thank You so much,
I find first method pretty neat.
Which one of two method is optimized in query stand of point?

Ответить
@enricomendiola9952
@enricomendiola9952 - 24.08.2023 07:39

Hi Rick Great solution for multiple partial match using List.transform but why am I getting an error with all the list using Excel for Mac?

Ответить
@ajinkyaadhotre5336
@ajinkyaadhotre5336 - 02.08.2023 10:31

Thanks man ! This one helped

Ответить
@coventry-enterprises
@coventry-enterprises - 01.08.2023 17:52

High-five to Rick!! Thank you for sharing these clever techniques.

Ответить
@adrianoschwenkberg6773
@adrianoschwenkberg6773 - 28.07.2023 00:14

great Content => first easy solution for filtering different multicharacter Criterias on a single text.

Ответить
@JenMayB
@JenMayB - 10.07.2023 01:44

Thank you! What function would I use to return the value found and matched to my list? My list will be another table and quite large so i am trying to extract the found value from a large irregular text string.

Ответить
@alexkim7270
@alexkim7270 - 27.04.2023 06:40

List.AnyTrue nesting with List.Transform is something mindblowing I learnt from this video. It saved so much time than performing join specifically just to reach the same output, despite it being the most "Excel" way of doing things.

Ответить
@andredeoliveira3684
@andredeoliveira3684 - 24.04.2023 05:06

Great job! thanks for the video

Ответить
@vladsamoilov897
@vladsamoilov897 - 19.04.2023 00:57

Amazing! Thank you so much Rick for sharing your knowledge. List functions are really useful. Keep doing great job!
Vlad.

Ответить
@dhirendrapnt
@dhirendrapnt - 06.04.2023 19:37

Thanks alot

Ответить
@mowgli536
@mowgli536 - 23.03.2023 21:15

Hi Rick. How can I use this same function but reference an actual list of values that I have listed and exclude the rows that start with those values from my dataset?

Ответить
@irenegurne8953
@irenegurne8953 - 21.03.2023 05:10

Is it possible that instead of writing the list {} ,getting if from a separate query table as list?

Ответить
@Suessongs
@Suessongs - 09.03.2023 16:52

I have a question that I have been searching the web for for awhile. I’m hoping you can help.
I was hoping to remove a list of about 170 customers from my query. I have their emails and that’s how I need to eliminate them. I know I can filter and copy and paste each and every email in to text does not contain but is there a way to copy and paste the whole list into the advanced editor ,not having to manually type all the and not text contains, etc around each and every email address?
Thanks in advance!

Ответить
@brendathompson3758
@brendathompson3758 - 24.01.2023 00:36

What code would you add to return the substrings that were found? For example, if I have a row with the strings "Carlos Weaver Bigge" and I am checking if the cell contains "Carlos" and "Bigge", how do I return in a new column a cell that says "Carlos, Bigge" ?

Ответить
@urbexdrw8400
@urbexdrw8400 - 08.01.2023 18:13

Your content is so valuable, thank you!
I managed to do something that was haunting me lol.

P.S. I followed you on Twitter but found no way to send you a dm, i have a specific question about something that I would like to add to my formulas

Ответить
@joaorataoo
@joaorataoo - 21.12.2022 20:39

From the input values in our list, how do we know/get those found in the text?

Ответить
@butterflyGirly7691
@butterflyGirly7691 - 14.11.2022 21:09

This is excellent. I have this requirement. I have a list of server names named "Host Names" I need to fetch the server names from another column named "Description" using "Host Names" table and display it. It might have multiple server names as well under "Description". Could you please tell me how do that?

Ответить
@ddest71
@ddest71 - 26.10.2022 06:55

How do I execute this functionality but with everything case insensitive? Example: the full name column contains carl Dunn instead of Carl Dunn

Ответить
@brunowendt1194
@brunowendt1194 - 13.10.2022 17:41

Exactly what I needed thanks!

Ответить
@irfanshaikh262
@irfanshaikh262 - 11.10.2022 12:04

Perfect. Thank you very much. This is something that I have been looking for so long.
Just 1 question, instead of returning conditional check values like "A", "BBBBBB" what if we need the matched substring populated. what changes are needed in the function code then.
Thanks again. Liked and Subscribed <3 :)

Ответить
@pravinshingadia7337
@pravinshingadia7337 - 08.10.2022 12:34

Thank you. But how do you make it return the text part it has found instead of TRUE?

Ответить
@melissagenthner2705
@melissagenthner2705 - 01.08.2022 23:38

How could use you this to search an entire field? I have many values that have the same prefix but can have various lengths etc.

Ответить
@danielmadrigal1343
@danielmadrigal1343 - 01.08.2022 20:27

great. worked for a presentation at work thanks

Ответить
@aart_analyst
@aart_analyst - 25.07.2022 19:15

This is excellent. I have a question though .... What if I wanted to get back the item that matched? e.g what if I want to return " Amir" when Amir was the one that matched?

Ответить
@ExcelInstructor
@ExcelInstructor - 29.06.2022 10:05

Hi :)
Thank you, it helped alot :)

However this 3rd or even 4th different case for me where I could use a function out of this.
I know how to create functions,
However when creating the 1st step of a function:
(MyInput as text) =>
It seems there is no "Column" type input. Only Table, List, function, text

Is there a way to somehow Make it?

Ответить
@brighnquisitive6217
@brighnquisitive6217 - 09.06.2022 18:26

Killer work, sir

Ответить
@arkd3um1988
@arkd3um1988 - 18.05.2022 10:25

Im used to excel showing what info he needs in order for a formula to work. In power query you basically need to know what your doing.
All example videos are fine, but its just luck to find exactly what you need in order to use it, otherwise (in my case) i have to learn a lot more because this is SF to me.

Ответить
@subuddhiba
@subuddhiba - 17.05.2022 14:21

Can we give another table reference... i have 1000 values to check whether text contains any of them.

Ответить
@Peter-pf8me
@Peter-pf8me - 13.05.2022 15:57

how to retrieve a number start with some characters and in a free text format sentences. For eg. number starts with ABxxxxxxx.

Ответить
@J1N-7
@J1N-7 - 27.04.2022 19:32

Hi, thanks ! I have a column of 'List' how do I convert it to text without using the extract function because it slows down the data load so much. If there is another way I can transform that list to text of the actual contents would be greatful. Many thanks

Ответить
@gabrielamorales86
@gabrielamorales86 - 19.04.2022 17:58

Thank you! This is exactly what I need to do, you explained it in a magnific way, awesome!

Ответить
@dganalysis
@dganalysis - 15.04.2022 11:39

Hi Rick, I used this technique a few times since watching your video and it works great.

I have one query though - If my list contains multiple values separated by a delimiter, such as:
CompanyX, Company Y
CompanyX Asia, Company Y
CompanyX Europe, Company Y

and I want to search for occurrences of individual companies, is there a way to capture each company, without duplicating CompanyX when it assesses the the Asia and Europe subsidiaries?

Apologies if this doesn't make sense.

Ответить
@tinaflemons4022
@tinaflemons4022 - 06.04.2022 15:44

Can you use the same this method to check multiple lists? For example, if List.Contains {"a","b","c"} then "Group 1", if List.Contains{"d","e","f"} then "Group 2", If List.Contains {"g","h","i"} then "Group 3", else "Group 4" , [employee],

Ответить
@GeertDelmulle
@GeertDelmulle - 12.03.2022 13:55

Nog maar een paar van jouw video’s gezien, maar dit is echt goed! :-)
Subbed!

Ответить
@ExcelOffTheGrid
@ExcelOffTheGrid - 03.03.2022 12:43

Great video Rick. Two good methods for solving this issue. 👍

Ответить
@pedromonzu6092
@pedromonzu6092 - 24.02.2022 22:08

Nice, cleanest explanation

Ответить
@corona0706
@corona0706 - 13.02.2022 16:50

Instead of having the specific text like "Carl" and etc, can i use a column in the query ? If yes how ?

Ответить
@raitup00
@raitup00 - 01.02.2022 08:59

Qué buen video!

Ответить
@Alan.DL7
@Alan.DL7 - 28.01.2022 01:52

Great stuff!

One quick question, would it be possible to implement this method but checking if the condition is met in more than 1 column at the same time? Because in both solutions you can only pick one column, if you try to create a list of the columns you want to check it doesn't work.

Ответить
@Lyriks_
@Lyriks_ - 14.01.2022 15:04

You reason like a developper yet you analyze like a business guy, which is an amazing combination ! GJ mate

Ответить
@yvesbrusten2291
@yvesbrusten2291 - 22.12.2021 12:00

Excellent and very didactive video. Thanks a lot ! Season's greetings.

Ответить
@10ozGold
@10ozGold - 11.12.2021 00:11

Excellent video. Very well explained. Thank-you so much.

Ответить