gpierson2018
New Member
- Joined
- Nov 17, 2018
- Messages
- 3
Hi, can anyone help me with this in Power Query? I'm trying to get data like this first table (Table 1) to look like (Table 2).
I understand how to unpivot and pivot in Power Query (and it doesn't work here - I get an error with Sally's hobby)
What I don't understand is how to go through and rename an Attribute that is repeated more than once per unique person/entry, as in my example, "Hobby".
I don't even know what it's called I'm trying to do. This isn't "grouping" I don't believe.
Any help would be appreciated!
..................
<tbody>
</tbody>
I understand how to unpivot and pivot in Power Query (and it doesn't work here - I get an error with Sally's hobby)
What I don't understand is how to go through and rename an Attribute that is repeated more than once per unique person/entry, as in my example, "Hobby".
I don't even know what it's called I'm trying to do. This isn't "grouping" I don't believe.
Any help would be appreciated!
..................
TABLE 1 | |||||
Name | Attribute | Entry | |||
Tom | Age | 40 | |||
Tom | Eyes | Blue | |||
Tom | Hobby | Bowling | |||
Bob | Age | 45 | |||
Bob | Eyes | Brown | |||
Sally | Age | 35 | |||
Sally | Eyes | Blue | |||
Sally | Hobby | Fishing | |||
Sally | Hobby | Sewing | |||
Sally | Hobby | Singing | |||
TABLE 2 | |||||
Name | Age | Eyes | Hobby_1 | Hobby_2 | Hobby_3 |
Tom | 40 | Blue | Bowling | ||
Bob | 45 | Brown | |||
Sally | 35 | Blue | Fishing | Sewing | Singing |
<tbody>
</tbody>