+ Reply to Thread
Results 1 to 3 of 3

Powerquery: Filtering rows by minimum value in column B, from subsets in column A

  1. #1
    Registered User
    Join Date
    01-23-2019
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1

    Powerquery: Filtering rows by minimum value in column B, from subsets in column A

    Hello all,

    Thank you for reading. I am currently trying to remove rows of a table in powerquery based upon minimum values in a column. Here is an example:

    Item Price
    Apples 1.99
    Apples 2.99
    Apples 3.99
    Bananas .50
    Bananas 1.00
    Bananas 2.00


    I need the final result to be
    Item Price
    Apples 1.99
    Bananas .50

    I think this will require a column with a custom function in powerquery, but am not sure how to go about doing this. I am fairly new to this kind of data processing.

    Thank you!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Powerquery: Filtering rows by minimum value in column B, from subsets in column A

    Welcome to the forum!

    This M code will do it:

    Please Login or Register  to view this content.
    Use grouped by and then the min option in the aggregation drop-down.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,987

    Re: Powerquery: Filtering rows by minimum value in column B, from subsets in column A

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Converting a row into a column using PowerQuery
    By heytherejem in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-27-2018, 09:01 AM
  2. Standard Deviation and Count for multiple subsets within a column
    By alexandra53190 in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 05-27-2015, 06:28 PM
  3. Filtering column will not include rows past 2195
    By mvparker79 in forum Excel General
    Replies: 21
    Last Post: 01-02-2015, 07:29 PM
  4. Return Minimum value of rows with blank value in another column
    By Dielmini in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2013, 08:07 AM
  5. Display only Rows and Column (a sort of filtering)
    By lemuel in forum Excel General
    Replies: 0
    Last Post: 06-15-2011, 02:23 PM
  6. Filtering Groups of 3 Rows based on a column
    By TheTempest in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-15-2010, 12:26 PM
  7. Filtering blank rows from a column
    By IB4OU in forum Excel General
    Replies: 2
    Last Post: 01-30-2007, 06:46 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