Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Des75
New Member

"Flatten" a Table with Power Query

Hello!  I am retrieving data from a database via Power Query and it looks like below.

From Power QueryFrom Power Query

 

I want to group the data by "sid" and and transpose the name column to headers such that it looks like below.  

Required FormatRequired Format

 

Any direction would be well appreciated!  I am using Power Query.

 

1 ACCEPTED SOLUTION
_AlexandreRM_
Helper II
Helper II

Hi @Des75 , here is an example of what you can do, if I understood well your problem:

_AlexandreRM__0-1664196007374.png

 

 

Steps:

1. Select "Transform" ribbon item
2. Select the column in which you have your future headers (for you it will be "name")

3. Press "Pivot column" button

4. In the settings, select the column in which you have the values (for you it will be "value")

5. In the advanced settings, select "Do not agregate" option

6. You're done!

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
_AlexandreRM_
Helper II
Helper II

Hi @Des75 , here is an example of what you can do, if I understood well your problem:

_AlexandreRM__0-1664196007374.png

 

 

Steps:

1. Select "Transform" ribbon item
2. Select the column in which you have your future headers (for you it will be "name")

3. Press "Pivot column" button

4. In the settings, select the column in which you have the values (for you it will be "value")

5. In the advanced settings, select "Do not agregate" option

6. You're done!

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Perfect!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.