+ Reply to Thread
Results 1 to 18 of 18

Power Query Transformation of Unstructured Data Table

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

    Power Query Transformation of Unstructured Data Table

    Hi All,

    I have attached a file showing a table with multiple headers and a format that is rather difficult for me to transform in Power Query to rows. Hoping someone here can assist.
    I provided desired outcome as well.

    Cheers
    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 Transformation of Unstructured Data Table

    maybe first fix source data: no merged cells (this is the greatest sin), no blank columns between data, no blank rows in the table
    then you can try to transform

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

    Re: Power Query Transformation of Unstructured Data Table

    Unfortunately the data source is controlled by a third party and the data set is quite large. I have to come up with a solution without changing the table format.
    Last edited by AliGW; 05-25-2023 at 01:08 AM. Reason: Please do NOT quote unnecessarily!

  4. #4
    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,937

    Re: Power Query Transformation of Unstructured Data Table

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

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.
    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

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

    Re: Power Query Transformation of Unstructured Data Table

    Unfortunately it doesn't. Hopefully some one helps
    Last edited by AliGW; 05-25-2023 at 01:09 AM. Reason: Please do NOT quote unnecessarily!

  6. #6
    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,937

    Re: Power Query Transformation of Unstructured Data Table

    @richy89
    What does this mean if not solved

    I have to come up with a solution without changing the table format.

  7. #7
    Forum Contributor John Vergara's Avatar
    Join Date
    01-17-2022
    Location
    Colombia
    MS-Off Ver
    365
    Posts
    200

    Re: Power Query Transformation of Unstructured Data Table

    Hi to all

    Name the range as "Data" (without quotes), and check this option in Power Query:

    Please Login or Register  to view this content.
    Blessings!
    A out-of-context text is a pretext.
    Consider adding reputation points to all the people who help you with your question/problem.

  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 Transformation of Unstructured Data Table

    Quote Originally Posted by richy89 View Post
    I have to come up with a solution without changing the table format.
    this is not possible with Power Query because PQ will split merged cells which means that the format of the source table has already been changed in PQ Editor
    or describe in detail and logically what you mean by writing the above
    Last edited by sandy666; 05-24-2023 at 09:50 PM.

  9. #9
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Power Query Transformation of Unstructured Data Table

    Sandy, check out the M Code by John in post #7, it works perfectly without modifying the source data!

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Power Query Transformation of Unstructured Data Table

    Almost perfect.. except to remove the unnecessary comas in the System column.

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

    Re: Power Query Transformation of Unstructured Data Table

    Quote Originally Posted by John Vergara View Post
    Hi to all

    Name the range as "Data" (without quotes), and check this option in Power Query:

    Please Login or Register  to view this content.
    Blessings!
    This is perfect. many thanks!

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

    Cool Re: Power Query Transformation of Unstructured Data Table

    Quote Originally Posted by josephteh View Post
    Almost perfect.. except to remove the unnecessary comas in the System column.
    no extra commas and untouched original source table
    Header Title Code System Location A Location B Area A Support Area B Support
    China FIFA A VKI Socks,Ballards Scott Willis Jane Clint
    China FIFA B XIR Okra John Smith Shaelly Mark
    New Zealand Aruaz X DKQ Fence,Hyndee,Vxil,Sons,Geild Chris Lee Tan Boyk
    New Zealand Aruaz Z PZV Vresim,Charlo,Zim,Olasd Veronica Elis Pigus Jasd Vacant Ukloba Hesend
    Please Login or Register  to view this content.

  13. #13
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,069

    Re: Power Query Transformation of Unstructured Data Table

    Great job, Sandy! Rep for you and John!

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

    Re: Power Query Transformation of Unstructured Data Table

    Thanks and Welcome

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

    Re: Power Query Transformation of Unstructured Data Table

    Hi John,

    Thanks for all your help.

    How can I further enhance it to recognize more merged cells like the ones highlighted yellow? See attached updated file.

    Attachment 830617

    Cheers
    Attached Files Attached Files

  16. #16
    Forum Contributor John Vergara's Avatar
    Join Date
    01-17-2022
    Location
    Colombia
    MS-Off Ver
    365
    Posts
    200

    Re: Power Query Transformation of Unstructured Data Table

    Hi again, richy89!

    Power Query really not recognize the merged cell... just the first cell (left and up) of the merging area. The anothers merged cells was fine, because they have another cell that tell to Power Query where to stop (or data ends too). Blessings!

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

    Re: Power Query Transformation of Unstructured Data Table

    All good then.

    Thanks again to you and everyone for resolving this!

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

    Re: Power Query Transformation of Unstructured Data Table

    you are welcome

+ 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: Efficient Data Transformation Required
    By m_kerr in forum Excel General
    Replies: 12
    Last Post: 12-20-2021, 12:03 PM
  2. [SOLVED] Power Query transformation of unrecognizable date/time format in column with various input
    By Marbleking in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-20-2021, 02:15 PM
  3. Sorting Pivot Table Pulling from Power Query Data Table
    By perkyparker in forum Office 365
    Replies: 1
    Last Post: 05-22-2021, 03:02 PM
  4. [SOLVED] Help to extract unstructured data into a table
    By josephteh in forum Excel General
    Replies: 1
    Last Post: 09-29-2020, 03:57 AM
  5. Power Query: Simple Table Transformation
    By andrewc in forum Excel General
    Replies: 1
    Last Post: 09-24-2020, 06:12 AM
  6. [SOLVED] Power Query Date Transformation
    By Moggzzz in forum Excel General
    Replies: 2
    Last Post: 03-21-2018, 02:47 PM
  7. Data transformation using Formula or Power Query
    By chullan88 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 11-18-2017, 09:59 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