+ Reply to Thread
Results 1 to 9 of 9

Power Query / Get & Transform - filter text contains based on list

  1. #1
    Registered User
    Join Date
    03-22-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    40

    Power Query / Get & Transform - filter text contains based on list

    Hi, I am trying to filter in Get & transform, using Text contains and text does not contain and I would like to base it on a table in Excel. How can I do this?

    Thanks.

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Power Query / Get & Transform - filter text contains based on list

    standard procedure:
    • load table into PQ
    • make columns which you want to use as text
    • add conditional column(s)

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Power Query / Get & Transform - filter text contains based on list

    Upload sample workbook with enough data to demonstrate your need (and desired output).

    Text.Contains([Column], "string") is probably useful for your need.
    It will return True when column row contains "string". False if not. You can then set filter on True/False for the calculated column.

    Alternately, you can set up parameter to check against, or set up Text Filter on the column.
    0.JPG
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    Registered User
    Join Date
    03-22-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    40

    Re: Power Query / Get & Transform - filter text contains based on list

    Capture.JPG

    I don't know why but I am unable to upload a file...

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Power Query / Get & Transform - filter text contains based on list

    To attach an Excel file to your post,
    • desensitize data
    • remeber that your example should reflect structure and type of data and contain the result what you want to achieve (manually created if necessary)
    • click Go Advanced,
    • scroll down until you see Manage Attachments,
    • click that and select Browse,
    • select your file and click Open,
    • click Upload and you will see your attachment below Upload Files from a website
    • click Close this window,
    • click Submit reply

    After that you should see attachment in your post

  6. #6
    Registered User
    Join Date
    03-22-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    40

    Re: Power Query / Get & Transform - filter text contains based on list

    Last edited by SHI.NL; 05-14-2018 at 03:53 PM.

  7. #7
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Power Query / Get & Transform - filter text contains based on list

    So with your sample... you want only items that match both condition of matching [Text contains] AND [Text does not contain] ?
    I.E. Return only "goodbye" & "hallo"

    Here's how I would do it.

    1. Load both tables as connection only.
    2. In Table1 (Greetings) add custom column
    =Table2

    3. Add another custom column with following calculation.
    Please Login or Register  to view this content.
    This will return...
    0.JPG

    4. Filter on [Custom.1] = True and then remove [Custom] & [Custom.1], load result to sheet.

    See attached.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-22-2018
    Location
    Netherlands
    MS-Off Ver
    2016
    Posts
    40

    Re: Power Query / Get & Transform - filter text contains based on list

    Amazing! Thanks so much!!!!! Truly awesome!!!!

  9. #9
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    Office 365 ProPlus
    Posts
    5,883

    Re: Power Query / Get & Transform - filter text contains based on list

    You are welcome and thanks for reps

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Power Query: Reading a text or csv file that is publicly available on the Web?
    By learning new things in forum Excel General
    Replies: 6
    Last Post: 10-31-2018, 03:12 PM
  2. [SOLVED] Power Query / Get & Transform filtering on text
    By SHI.NL in forum Excel General
    Replies: 5
    Last Post: 04-28-2018, 11:50 AM
  3. Replies: 3
    Last Post: 04-20-2018, 08:30 AM
  4. [SOLVED] Power Query: Group by category, list text items on separate rows
    By JimDandy in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 08-05-2017, 12:11 AM
  5. [SOLVED] Change data structure using Formula or Power Query ( Get & Transform)
    By chullan88 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-04-2017, 02:58 AM
  6. Get & Transform (Power Query) not showing certain tables
    By BamBamMoneyBags in forum Excel General
    Replies: 0
    Last Post: 03-22-2017, 12:22 PM
  7. Power Query - Filter by Date
    By brent_milne in forum Excel General
    Replies: 0
    Last Post: 03-16-2017, 10:39 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1