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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Syndicate_Admin
Administrator
Administrator

Grouping multiple rows into one

An additional query appears to me as follows, there is some way for the assignee and requester data to appear in a single row and not two as shown.

joel121960_0-1706804817453.png

2 ACCEPTED SOLUTIONS
Idrissshatila
Super User
Super User

Hello @Syndicate_Admin ,

 

yes you could merge the two columns into one, check how https://youtu.be/qG_SGa53XKA?si=z1MTLGg0cxLSFAIi

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

v-huijiey-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Hope all is going well.

 

According to your demand description, the same ID displays the assignee and requester data in one row. The most suitable method is pivot and unpivot. The operation steps are as follows:

 

1. This is the original data, please change it according to your actual situation.

vhuijieymsft_0-1706856030816.png

 

2. Select the ID column in Power Query, select Transform>>Unpivot Columns>>click the drop-down box and select Unpivot Other Columns.

vhuijieymsft_1-1706856039390.png

 

After the operation is completed, the page should look like the following picture:

vhuijieymsft_2-1706856047265.png

 

3. Select the Attribute column in Power Query, select Transform>>Pivot Column, and select Value for "Values Column" in the pop-up window.

vhuijieymsft_3-1706856065423.png

 

vhuijieymsft_4-1706856065425.png

 

After the operation is completed, the page should look like the following picture:

vhuijieymsft_5-1706856075740.png

 

Attached below are some official documentation links for you to learn more about Pivot and Unpivot.

Pivot columns - Power Query | Microsoft Learn

Unpivot columns - Power Query | Microsoft Learn

 

Power BI Desktop files are attached.

 

If you have any other questions, please feel free to contact me. I am very grateful for your patience and cooperation.


Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

3 REPLIES 3
v-huijiey-msft
Community Support
Community Support

Hi @Syndicate_Admin ,

 

Hope all is going well.

 

According to your demand description, the same ID displays the assignee and requester data in one row. The most suitable method is pivot and unpivot. The operation steps are as follows:

 

1. This is the original data, please change it according to your actual situation.

vhuijieymsft_0-1706856030816.png

 

2. Select the ID column in Power Query, select Transform>>Unpivot Columns>>click the drop-down box and select Unpivot Other Columns.

vhuijieymsft_1-1706856039390.png

 

After the operation is completed, the page should look like the following picture:

vhuijieymsft_2-1706856047265.png

 

3. Select the Attribute column in Power Query, select Transform>>Pivot Column, and select Value for "Values Column" in the pop-up window.

vhuijieymsft_3-1706856065423.png

 

vhuijieymsft_4-1706856065425.png

 

After the operation is completed, the page should look like the following picture:

vhuijieymsft_5-1706856075740.png

 

Attached below are some official documentation links for you to learn more about Pivot and Unpivot.

Pivot columns - Power Query | Microsoft Learn

Unpivot columns - Power Query | Microsoft Learn

 

Power BI Desktop files are attached.

 

If you have any other questions, please feel free to contact me. I am very grateful for your patience and cooperation.


Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Thank you helped me move forward with my project

Idrissshatila
Super User
Super User

Hello @Syndicate_Admin ,

 

yes you could merge the two columns into one, check how https://youtu.be/qG_SGa53XKA?si=z1MTLGg0cxLSFAIi

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors