Search for key words with Power Query

Search for key words with Power Query

Access Analytic

4 года назад

29,030 Просмотров

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


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

@GrainneDuggan_Excel
@GrainneDuggan_Excel - 02.02.2020 02:22

So many wonderful ideas and solutions! Quick Access Toolbar, buffer, merge with myself, ignore.... 18 minutes packed with info! Thank you Wyn for such a fabulous video

Ответить
@williamarthur4801
@williamarthur4801 - 07.10.2023 17:11

Did not know about the comparer option, you should do a video on them all, along with Combiner.

Ответить
@africanbea
@africanbea - 09.08.2023 21:19

Hi Sir. I have a similar situation, but there are items that I don't want to match and say "Others," it seems that I have to make a complete list and make the things not fit "Others." Is there a way to skip these items in the conditional step and pick them up as "Others?"

Ответить
@mohammedmusthafa2849
@mohammedmusthafa2849 - 31.07.2023 22:38

Hi.. can we search for an “exact match” like a full word .

Ответить
@peltiertech1879
@peltiertech1879 - 09.05.2023 13:29

Awesome, lots of neat little tricks missed in with the main technique

Ответить
@954giggles
@954giggles - 03.05.2023 00:17

What if you wanted had multiple columns...not just ticker symbol

Ответить
@Bhavik_Khatri
@Bhavik_Khatri - 19.10.2022 16:26

Hi Wyn,
I tried deriving Actual Categories with multiple matches separated by comma delimiter in sample file from your website. The query is a bit slow.
Can you see anything to speed it up?

M Code let
BufferedKeywords = Table.Buffer(Keywords),
Source = TransactionListing,
#"Added Index" = Table.AddIndexColumn(Source, "Index", 1, 1),
#"Added Custom" = Table.AddColumn(#"Added Index", "Custom", each BufferedKeywords),
#"Expanded Custom" = Table.ExpandTableColumn(#"Added Custom", "Custom", {"Search Word", "Category"}, {"Search Word", "Category"}),
#"Search for Keyword - Add column" = Table.AddColumn(#"Expanded Custom", "Actual Categories", each if Text.Contains([Description], [Search Word], Comparer.OrdinalIgnoreCase) then [Category] else null),
#"Removed Other Columns" = Table.SelectColumns(#"Search for Keyword - Add column",{"Index", "Actual Categories"}),
#"Grouped Rows" = Table.Group(#"Removed Other Columns", {"Index"}, {{"AllRows", each _, type table [Index=number, Actual Categories=nullable text]}}),
#"Extract Actual Categories" = Table.AddColumn(#"Grouped Rows", "Actual Categories", each [AllRows][Actual Categories]),
#"Extracted Values" = Table.TransformColumns(#"Extract Actual Categories", {"Actual Categories", each Text.Combine(List.Transform(_, Text.From), ", "), type text}),
#"Merged Queries" = Table.NestedJoin(#"Added Index", {"Index"}, #"Extracted Values", {"Index"}, "Extracted Values", JoinKind.LeftOuter),
#"Expanded Extracted Values" = Table.ExpandTableColumn(#"Merged Queries", "Extracted Values", {"Actual Categories"}, {"Actual Categories"}),
#"Filtered Rows" = Table.SelectRows(#"Expanded Extracted Values", each [Actual Categories] <> null and [Actual Categories] <> ""),
#"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"Index"}),
#"Changed Type" = Table.TransformColumnTypes(#"Removed Columns",{{"Actual Categories", type text}})
in
#"Changed Type"


Kind Regards

Bhavik

Ответить
@Bhavik_Khatri
@Bhavik_Khatri - 15.10.2022 04:53

Hi Wyn,

Your video is helpful as I'm using it now for work.Did you make a short video showing the Excel filter function to do similar task? How about Custom Function too?

Thank you very much for sharing your knowledge.

Kind Regards

Bhavik

Ответить
@armanazote6230
@armanazote6230 - 26.08.2022 05:59

I like the thinking part.
:D

Ответить
@abdullahalnaiem3501
@abdullahalnaiem3501 - 24.08.2022 16:07

How can do this thing with multiple search world

Ответить
@avishiinternational5338
@avishiinternational5338 - 09.08.2022 16:35

Excellent video that explained key word search nicely. Can you please help me with a problem? One of my keyword is ship and Text.Contains results true even if the text in the search column contains Warship, Leadership etc. I want Text.Contains to be true only when ship is a separate word in the text. Looking forward to your help

Ответить
@GoodmanMalaya9291
@GoodmanMalaya9291 - 30.07.2022 08:29

awesome

Ответить
@reanalytics1863
@reanalytics1863 - 06.07.2022 17:56

Table.Buffer

Please bring us more use cases, very interesting function

Ответить
@brij26579
@brij26579 - 25.06.2022 16:16

Suuuuuperb

Ответить
@Sumanth1601
@Sumanth1601 - 13.06.2022 17:52

Thank you Wyn.. I am using this solution for my tasks since last 18 months. Missed an opportunity to thank you.

Ответить
@joannazibbell4149
@joannazibbell4149 - 12.05.2022 15:42

Is it possible to build this functionality in a Power BI report to have a more friendly user interface?

Ответить
@yankeeking213
@yankeeking213 - 23.02.2022 16:43

Learned a lot of great concepts from this. Thank you!

Ответить
@vijaykrishnan4151
@vijaykrishnan4151 - 03.02.2022 08:05

Superb!...learnt a lot :)

Ответить
@mnowako
@mnowako - 01.12.2021 01:33

Amazing, thank you!

Ответить
@thealchemist6133
@thealchemist6133 - 20.11.2021 16:01

can you provide the link of 'Custom Function' that you referred in this video? Thanks.

Ответить
@singhalmonica
@singhalmonica - 16.11.2021 19:31

Great lesson.

Ответить
@SMITDEDHIA96
@SMITDEDHIA96 - 09.11.2021 16:06

I am working on a dataset with 3M+ rows and some 20K+ keywords. Considering that we're directly merging & expanding all keywords against each line of transaction table, would you recommend this method?

Ответить
@cezarconstantino7962
@cezarconstantino7962 - 28.10.2021 20:02

Wow buffer table! This is what I'm looking for to fasten the refresh.

Ответить
@z.719
@z.719 - 20.10.2021 07:44

Awesome 👍. Very useful

Ответить
@miazhou8902
@miazhou8902 - 30.09.2021 09:04

Amazing, thanks.

Ответить
@ShahmeranGilani
@ShahmeranGilani - 29.09.2021 22:45

This is fantastic! Thank you for putting up this tutorial!

Ответить
@kebincui
@kebincui - 19.09.2021 17:05

Very good tutorial. Thanks Wyn for sharing 👍👍👍👍

Ответить
@virterra
@virterra - 05.09.2021 02:48

Great vid. First time I've seen the Table.Buffer(Keywords) function. Very helpful.
Thanks.

Ответить
@PValili
@PValili - 27.08.2021 14:11

Thank you. Very useful indeed.

Ответить
@mrstevenbne
@mrstevenbne - 23.07.2021 13:57

Great! thanks for sharing!

Ответить
@adriannacook313
@adriannacook313 - 05.07.2021 07:37

Hi Wyn, thanks for another very helpful video. Could you please let me know how I can do something similar in Power BI? In my PowerBI workbook, I have a table (loaded from SQL server) which contains a column that I want to perform the keyword search. How can I make this column become a list/separate table itself, then add another column next to it, to define the keywords I want to use? At the moment I am using IFS statements to achieve this but my codes are lengthy and not cover 100% all words I want to search. Thank you!

Ответить
@wayneedmondson1065
@wayneedmondson1065 - 22.06.2021 07:08

Hi Wyn. Awesome tutorial! The BufferedKeywords step is a lifesaver. Thanks for demonstrating this great technique. Will bookmark this one, so I can refer to it again in the future :)) Thumbs up!!

Ответить
@sajilprkkv
@sajilprkkv - 02.05.2021 03:25

Stunning video 😍👍🏻 after a couple hours search I found a right and easy tutorial for 1 of my problem ☺️ help me if you can with my another problem, I have a column named Account number (it’s a 12 digit number) the 5th and 6th digits belongs to supplier code, so I have to get the supplier name by matching these codes. With normal excel formula I use mid and vlookup functions to do this . Could you pls provide the link if you already done such video.
Advance thanks

Ответить
@cedjulemckeever
@cedjulemckeever - 28.04.2021 19:37

Did you ever do the video using a custom function to search for key words? I am just trying to learn about custom functions.

Ответить
@davidferrick
@davidferrick - 15.04.2021 01:47

I love the little useful nuggets you drop along the way.

Ответить
@naveenviegas3498
@naveenviegas3498 - 11.04.2021 08:19

Just fabulous

Ответить
@dullo99
@dullo99 - 10.04.2021 14:30

Hi and thanks for this excellent video that was very nice and helpful in it you covered what I have been looking for a long time!
Now I still have a question for you: How would you do the exact same in Microsoft Access SQL? I prefer using databases to use Excel. I think I have found a way to do this already but am eager to see what you would have been doing?

Ответить
@SMH2007
@SMH2007 - 03.04.2021 05:15

OMG I have been attempting to figure out how to match the two table and kept running into roadblocks. I am so glad I found this tutorial. Thanks a million.

Ответить
@gopichand5717
@gopichand5717 - 14.03.2021 11:48

Awesome thank you for sharing this 🔥🔥

Ответить
@Acheiropoietos
@Acheiropoietos - 04.02.2021 22:48

The penny just dropped. Awesome stuff.

Ответить
@granand
@granand - 22.12.2020 03:03

Thank you. If I have to learn in sequence, is there a way ?

Ответить
@anthonyfernandez894
@anthonyfernandez894 - 04.12.2020 18:04

Stunning tips, thank you so much. This one awakes multiple ideas. Kind regards from Costa Rica.

Ответить
@claireann4017
@claireann4017 - 27.11.2020 21:17

Thank you so much! Extremely helpful 😊

Ответить
@FaisalBokhowah
@FaisalBokhowah - 22.11.2020 23:43

Very cool, and thanks for this special content

Ответить
@Rewe4life
@Rewe4life - 04.11.2020 19:53

Hello, you may be able to help me. I am looking for a way to let the Power Query Editor search for specific format (here 3xA 4xNumber; example AAA8510) and then put that value into a new colum.
Reason is that that is a flightnumber that will change, but will always start three As before four numbers. Some cells does not contain a flight number, that's why I cannot just split by " - " at the end of the cell as that would split up random other stuff and I would have that stuff in the new "flight number" colum.

Is there a function that can help me?

Ответить
@SMITDEDHIA96
@SMITDEDHIA96 - 18.10.2020 17:49

Overwhelmingly amazing!!! So glad I stumbled upon this channel. Thank you sir!! You're awesome.

Ответить
@luihoratio621
@luihoratio621 - 16.10.2020 13:25

Thanks Wyn for the very useful tutorials. In the "Search Word" column, how can we apply wildcards in the way we do it in Excel formula? like we wanna determine if the description contains a "w" and then after this there is a "son", and then after these, there is a "parking" (translating to "*w*son*parking"). I tried "*w*son*parking" and "%w%son%parking" (in the query in my scenario) but no luck.

In the query that I am building there are multiple keywords that will be using wildcard logics like this. Instead of hardcoding (multiple Text.Contains joined by AND) each one by one, is there a way to do it easily?

Ответить
@tomaslevak644
@tomaslevak644 - 22.08.2020 13:52

Thank you so much for this video, this gave me a lot of new ideas and solutions

Ответить
@hariyantowidjaja6167
@hariyantowidjaja6167 - 03.05.2020 08:09

if i have 200.000 row transaction with 1200 keyword, does 'not it very slow?

Ответить