Jan 14 2022 06:09 PM - edited Jan 14 2022 06:15 PM
Looking for some help in converting a data table. I'm thinking PowerQuery may be the solution.
I need to convert the below tablet to where each person, employee and dependent, has their own row. Currently, I have the employee occupying each row where they have dependents. If you go to the right (actually what would be column U. ) you see the dependent ID, employee_client_value_8. Ideally, each person would have their own row, share the common employee ID, but maintain their own ID. Their names would also be in a new field, Name.
Is this a job for PowerQuery?
employee_client_id | employee_name | employee_dob | employee_street_1 | employee_street_2 | employee_city | employee_state | employee_zip | employee_phone | employee_email | employee_client_value_1 | employee_client_value_2 | employee_client_value_3 | employee_client_value_4 | employee_client_value_5 | employee_client_value_6 | employee_client_value_7 | employee_client_value_8 | employee_client_value_9 | employee_client_value_10 | dependent_client_id | dependent_name | dependent_rel | dependent_dob | dependent_products | dependent_client_value_1 | dependent_client_value_2 | dependent_client_value_3 | dependent_client_value_4 | dependent_client_value_5 | dependent_client_value_6 | dependent_client_value_7 | dependent_client_value_8 | dependent_client_value_9 | dependent_client_value_10 |
C0126 | John Smith | 31244 | 2612 W Plaza Ave | Zenith | KY | 40255 | 502-123-555 | Email address removed | C0126-A | Megan Smith | SP | 30941 | MDV | |||||||||||||||||||||
C0126 | John Smith | 31244 | 2612 W Plaza Ave | Zenith | KY | 40255 | 502-123-555 | Email address removed | C0126-B | Olivia Smith | CH | 40846 | MDV | |||||||||||||||||||||
C0126 | John Smith | 31244 | 2612 W Plaza Ave | Zenith | KY | 40255 | 502-123-555 | Email address removed | C0126-C | Daniel Smith | CH | 41306 | MDV | |||||||||||||||||||||
C0127 | Tanya Doe | 23143 | 323 Robin Blvd | Chester's Mill | OH | 42122 | 8112-999-5512 | Email address removed | C0127-A | Juan Doe | SP | 30941 | DV | |||||||||||||||||||||
C0127 | Tanya Doe | 23143 | 323 Robin Blvd | Chester's Mill | OH | 42122 | 8112-999-5512 | Email address removed | C0127-B | Izaiah Doe | CH | 40846 | MDV | |||||||||||||||||||||
C0127 | Tanya Doe | 23143 | 323 Robin Blvd | Chester's Mill | OH | 42122 | 8112-999-5512 | Email address removed | C0127-C | Xavier Doe | CH | 41306 | MDV | |||||||||||||||||||||
C0127 | Tanya Doe | 23143 | 323 Robin Blvd | Chester's Mill | OH | 42122 | 8112-999-5512 | Email address removed | C0127-D | Cara Doe | SC | 36495 | D |
Jan 14 2022 10:07 PM - edited Jan 15 2022 12:43 AM
@sbisa Yes! Definitely something for PQ. Can you show, based on the example data you provided how exactly the end result should look like? That is, how you would cut and past it manually to get the table you want.
Edit: Had a closer look at the data and thought that it could look like in the attached file.