
- #MS EXCEL QUERY TABLE FULL#
- #MS EXCEL QUERY TABLE CODE#
- #MS EXCEL QUERY TABLE PLUS#
- #MS EXCEL QUERY TABLE SERIES#
#MS EXCEL QUERY TABLE FULL#
In short, make a table of text to search for load and only create connection load main table that you want to search in add custom column to the search in table consisting of the full lookup table expand the custom column with the lookup table add a new custom column with the following: Text.Contains(,) and Text.Contains,). I had the same requirement and found this recent YT post by Oz which I think addresses your question: Here is a YouTube video explaining all the steps in detail. Stay tuned for the following parts! Watch the tutorial In conclusion, this was sums up Part 1 of the series. To clarify, if we replaced the true with false, we would exclude all the countries in our list from the result, which is just brilliant.
#MS EXCEL QUERY TABLE CODE#
Here is the code of the entire step: = Table.SelectRows(#"Replaced Errors", each (List.Contains(ListOfTen,)=true ))Īnd voila, we now only see the countries from our list. Now we will replace the deleted part with (List.Contains(ListOfTen,)=true )) We will only need this part of the code = Table.SelectRows(#"Replaced Errors", each You should now see something like this in the Formula Bar. The idea here is that we wish to get most of the code that we need for the next step. Now we shift to the AllCountries Query and only select a few countries. The next step is to Filter a Table to a list that we just created. This means we now have a dynamic list of ten countries. Query, suggesting that it is no longer returning a table but a list of items. You should now see a noticeable change in the icon of the ListOfTen ListOfTen within the Power Query Editor and selecting the Transform>Convert We do this by selecting the Country column of the Table We must convert the list of tenĬountries into a list. We get both tables into Power Query by selecting a single cell within the tables and clicking on Data>From Table/Range.Ĭonsequently, we should end up with something like this. Ways to do this, but I used RANDBETWEEN so that all the steps apply to Excel Using RANDBETWEEN (in Office 365 with Dynamic Arrays there are far better Table ListOfTen is just a random list of 10 countriesįrom the main Table and looks something like this (the Id’s are calculated
#MS EXCEL QUERY TABLE PLUS#
Table AllCountries containsĪ list of Countries plus some demographic data and looks like this. If you prefer learning through video, you can watch this video or view the video embedded at the end of this article. You can get the Workbook here and follow along.
#MS EXCEL QUERY TABLE SERIES#
Utilizing Power Query Lists Series – Part 1/3
