+ Reply to Thread
Results 1 to 4 of 4

Power query filter rows by contains text

  1. #1
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    612

    Power query filter rows by contains text

    Hi,

    Simple table with added custom ;

    Please Login or Register  to view this content.
    Not sure if this is best way but it does give a correct result , if there better ways involving List.ContainsAny etc please let me know.

    But what i was trying to do was filter by these true /false so;

    Please Login or Register  to view this content.
    this returns only one row that is correct and an extra, not sure why the above does not like 't' when changed to 'x" it works but still xtra row?

    Any help?

    Book attached with attempts including Textpositionof .

    Richard.
    Attached Files Attached Files
    Last edited by Dicken; 10-19-2023 at 12:14 PM. Reason: attach doc

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Power query filter rows by contains text

    Richard,
    No file attached. I am a bit confused by what you want to show in the "New Column". Do you need an if - then statement? Perhaps a mocked up solution also would help.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    612
    Not sure why you can't get the attached file, I just downloaded the attachment? just to note there is not excel table, it's all in power query.

    I don't what new column, the add column was just shown to as example of true / false results to then use in table select rows
    to filter down the table.

    so ;
    Please Login or Register  to view this content.
    I have found that if I use 'try' inside table select rows it works. that my be a future question as I'm not sure why it's needed?


    Please Login or Register  to view this content.
    to;
    Please Login or Register  to view this content.

    Richard.
    Last edited by Dicken; 10-20-2023 at 09:19 AM. Reason: More information

  4. #4
    Forum Contributor
    Join Date
    08-03-2021
    Location
    London
    MS-Off Ver
    365
    Posts
    612

    Re: Power query filter rows by contains text

    Further to previous 'try otherwise', the problem was I had numbers and text so ;

    Please Login or Register  to view this content.
    Seems to have solved the problem.

    now i have a question related to List contains, but will mark this up solved, if you or anyone has any suggestions on a better way to filter
    a by multiple criterial please let me know.

    Richard.

+ 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] How to filter 0 from two columns in power query editor in one step?
    By daliye in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2023, 09:44 PM
  2. Filter rows in power query
    By Mayasak in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-12-2023, 02:09 AM
  3. [SOLVED] Power Query - add empty rows & rows of text below bottom of group
    By josephteh in forum Excel General
    Replies: 1
    Last Post: 11-16-2020, 02:59 PM
  4. [SOLVED] Power Query Filter All Rows After Prior Month
    By Tayque_J_Holmes in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-19-2018, 11:31 AM
  5. [SOLVED] Power Query / Get & Transform - filter text contains based on list
    By SHI.NL in forum Excel General
    Replies: 8
    Last Post: 05-14-2018, 04:53 PM
  6. [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
  7. Replies: 2
    Last Post: 07-19-2015, 06:04 PM

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