+ Reply to Thread
Results 1 to 8 of 8

Power Query - Transforming & organizing VERY messy data. Need help/guidance.

  1. #1
    Registered User
    Join Date
    08-30-2020
    Location
    Iowa
    MS-Off Ver
    Office365
    Posts
    12

    Power Query - Transforming & organizing VERY messy data. Need help/guidance.

    Good day,

    I've been tasked at the brewery that I work for to compile all of our data so that we can begin to compare and contrast each batch of beer we make in a more productive and clean fashion. I consider myself pretty handy with excel, but I am just starting to learn power query & Power Bi and am still a novice at it. A lot of the tutorials that I've been watching usually have pretty clean data that is somewhat easy to manipulate. Their data is usually already in tables, or at least categorized properly with very little complications to overcome. I have a decent grasp of the basics, but am finding myself struggling where I should even start with my task and how to slowly chip away at it.

    The attached workbook contains an example of what our files typically look like. I've filled them in with temporary data. There are also a few sheets I've hidden as they are usually helper sheets that contain some of the selections for the drop down menus on the sheet. The primary sheets I am trying to compile are the four different batch sheets. They all contain the same fields. My objective is to make the layout and transform the data into a similar fashion as the attached photo. There are a lot of merged cells in the actual document and that makes for a very messy layout in the initial Power Query page. It is a little daunting on where to begin

    One way I have tried tackling this is by creating multiple queries for the different sections on the sheet and then appending them together, but doing some research said that is not good practice and can lead to problems in the future.

    If someone could help guide me towards a good tutorial or how I should go about transforming the data that would be lovely!


    Cheers
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by Kingofthehild; 02-08-2022 at 06:10 PM.

  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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,562

    Re: Power Query - Transforming & organizing VERY messy data. Need help/guidance.

    Can you upload the mock up as well, please?
    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
    Registered User
    Join Date
    08-30-2020
    Location
    Iowa
    MS-Off Ver
    Office365
    Posts
    12

    Re: Power Query - Transforming & organizing VERY messy data. Need help/guidance.

    Done. I've labeled it, "Ideal Query Layout". Ultimately, my goal is to get all the fields and data onto one row per Batch of beer. Each batch of beer's data is comprised on one excel sheet in a workbook.

    Thank you for taking your time to look at it.
    Last edited by AliGW; 02-08-2022 at 06:19 PM. Reason: PLEASE don't quote unnecessarily!

  4. #4
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,562

    Re: Power Query - Transforming & organizing VERY messy data. Need help/guidance.

    It is late evening here. If nobody else looks overnight, I'll take a look tomorrow morning.

  5. #5
    Registered User
    Join Date
    08-30-2020
    Location
    Iowa
    MS-Off Ver
    Office365
    Posts
    12

    Re: Power Query - Transforming & organizing VERY messy data. Need help/guidance.

    No worries, I'm wrapping up things here myself. I appreciate it.

  6. #6
    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. 2407 (Windows 11 23H2 64-bit)
    Posts
    83,562

    Re: Power Query - Transforming & organizing VERY messy data. Need help/guidance.

    This is going to be above my pay grade, however there are other PQ experts who will see this and respond, I am sure. Good luck!

  7. #7
    Registered User
    Join Date
    08-30-2020
    Location
    Iowa
    MS-Off Ver
    Office365
    Posts
    12

    Re: Power Query - Transforming & organizing VERY messy data. Need help/guidance.

    Quote Originally Posted by AliGW View Post
    This is going to be above my pay grade, however there are other PQ experts who will see this and respond, I am sure. Good luck!
    Appreciate you taking the time to take a look at it. You maybe able to help with how I previously tried to go about solving my problem.

    One way I went about doing it was creating a series of different queries for the different sections of the sheet. So a section for the information in the header, one for the mash in data, one for the lautering data, so on and so fourth. Once they were all divided, I appended them all into another query. One they were all appended, I was able to fill up the data and delete the remaining rows to get everything in one line. However, this seems suboptimal. If I continued down that way as a solution Do you think that is a viable way solve my issue or will that lead to complications down the road?
    Last edited by Kingofthehild; 02-09-2022 at 02:27 PM.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,711

    Re: Power Query - Transforming & organizing VERY messy data. Need help/guidance.

    VBA extract
    Please Login or Register  to view this content.
    I am a novice re PQ but I doubt if this can be done with PQ which works from structured tables.

    You will need a naming convention for the tabs: the above assumes "Brew Data Bn". I use the number in B2 text to determine batch number.
    Attached Files Attached Files
    Last edited by JohnTopley; 02-10-2022 at 07:27 AM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Power Query Guidance & Training
    By Potholes in forum Excel General
    Replies: 6
    Last Post: 06-17-2019, 03:05 AM
  2. Power Query Guidance & Training
    By Potholes in forum The Water Cooler
    Replies: 1
    Last Post: 06-17-2019, 01:06 AM
  3. 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
  4. [SOLVED] Query Editor transforming Cross Tab data but Row header (date) become Text.
    By jp16 in forum Excel Charting & Pivots
    Replies: 8
    Last Post: 06-06-2018, 06:37 AM
  5. Help Organizing Data Pulled from Web Query
    By caveatze in forum Excel General
    Replies: 4
    Last Post: 01-09-2018, 07:18 PM
  6. [SOLVED] Transforming data without Power Query
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2017, 11:16 AM
  7. Transforming messy database into clean database
    By SteveC in forum Excel General
    Replies: 4
    Last Post: 01-24-2006, 07:35 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