+ Reply to Thread
Results 1 to 10 of 10

Power Query to summarise Data

  1. #1
    Registered User
    Join Date
    07-11-2022
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    31

    Power Query to summarise Data

    Hi all,

    I would like to summarise text data using power query but have struggled to find a solution.

    I would like power query to count values in one column and then return a "multiple" or "missing" for blank cells.

    See attached for details. I have a raw data tab and what I am hoping to get in the "Finished" tab.

    Thanks!
    Attached Files Attached Files

  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 to summarise Data

    try

    Please Login or Register  to view this content.
    ID Personel name company Code in Doc 1 Code in Doc 2 Correct Code? = Apply Code in Doc 1
    880052042
    John Motors 3 XYZ100 XYZ100 XYZ100
    880052042
    John Motors 3 XYZ100 XYZ200
    880052042
    John Motors 3 XYZ100 XYZ300
    880052042
    John Motors 3 XYZ100 XYZ400
    880052042
    John Motors 3 XYZ100 XYZ500
    880051022
    Sarah Motors 3 XYZ300 XYZ300 XYZ300
    880051651
    Smith Motors 6 XYZ300 XYZ100
    880051089
    Richard Motors 8 XYZ500

  3. #3
    Registered User
    Join Date
    07-11-2022
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    31

    Re: Power Query to summarise Data

    consolidate.PNG

    Thanks, but the solution hasn't worked.

    See the image. The codes highlighted in red are not the same so I want power query in this instance to mark this as "multiple" and then consolidate all row into one row.

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

    Re: Power Query to summarise Data

    post excel file with source data AND EXPECTED result

  5. #5
    Registered User
    Join Date
    07-11-2022
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    31

    Re: Power Query to summarise Data

    See first post. Excel file attached

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

    Re: Power Query to summarise Data

    You mean you want words in the table?

  7. #7
    Registered User
    Join Date
    07-11-2022
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    31

    Re: Power Query to summarise Data

    I basically want to get from here

    start.PNG


    to here;

    Finish.PNG


    Excel file attached

    Thanks
    Attached Files Attached Files

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

    Re: Power Query to summarise Data

    ID Personel name company Code in Doc 1 Code in Doc 2
    880052042
    John Motors 3 XYZ100 Multiple
    880051022
    Sarah Motors 3 XYZ300 XYZ300
    880051651
    Smith Motors 6 XYZ300 XYZ100
    880051089
    Richard Motors 8 XYZ500 Missing

  9. #9
    Registered User
    Join Date
    07-11-2022
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    31

    Re: Power Query to summarise Data

    Thanks Sandy.

    This is exactly what I wanted

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

    Re: Power Query to summarise Data

    You are welcome




    Click the Add Reputation at the foot of any of the posts of members who helped you

+ 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] Using Power Query to summarise stock balances at all locations
    By josephteh in forum Excel General
    Replies: 2
    Last Post: 07-23-2020, 03:52 AM
  2. [SOLVED] How to access data via VBA from a Connection Only Power Query query.
    By MLAN_75 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2020, 11:45 AM
  3. Replies: 4
    Last Post: 02-17-2020, 06:03 AM
  4. Sub-Forum for Excel Power Tools (Power Query, Power Pivot & Power BI)
    By chullan88 in forum Suggestions for Improvement
    Replies: 10
    Last Post: 06-28-2018, 02:25 PM
  5. [SOLVED] Formula Query: How to summarise data by month and code group
    By The_Snook in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-22-2013, 05:50 AM
  6. [SOLVED] PivotChart Query: How to summarise data by month on the x axis
    By The_Snook in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 07-23-2013, 08:33 AM
  7. [SOLVED] SUMIF Query: How to summarise values based on data extracted from a text string
    By The_Snook in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-17-2013, 10:12 AM

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