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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
hashmi1977
Frequent Visitor

Not able to unpivot sharepiont columns in a separate table in Power Bi

 

In Power BI I have a sharepiont list as table and When I tried to "Unpivot Only Selected Columns" then it is not creating separate table. it is unpivot rows in the same dateaset which means rows increased by (No of rows * unpivot columns)

 
1 ACCEPTED SOLUTION
v-yohua-msft
Community Support
Community Support

Hi, @hashmi1977 

Thanks for the reply from Alex87, please allow me to provide another insight:

The Unpivot Only Selected Columns action in Power BI is designed to transform data in the same table, not to create a new table. When you unpivot a column, you're essentially converting wide-form data (each data point has its own column) into long-form data. That's why you're seeing an increase in the number of rows.

If you want to keep the original table unchanged and create a new table with non-pivoted data, you can copy the original table before performing the unpivot operation.

vyohuamsft_0-1714975245328.png

Then paste it again.

vyohuamsft_1-1714975657415.png

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

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
v-yohua-msft
Community Support
Community Support

Hi, @hashmi1977 

Thanks for the reply from Alex87, please allow me to provide another insight:

The Unpivot Only Selected Columns action in Power BI is designed to transform data in the same table, not to create a new table. When you unpivot a column, you're essentially converting wide-form data (each data point has its own column) into long-form data. That's why you're seeing an increase in the number of rows.

If you want to keep the original table unchanged and create a new table with non-pivoted data, you can copy the original table before performing the unpivot operation.

vyohuamsft_0-1714975245328.png

Then paste it again.

vyohuamsft_1-1714975657415.png

 

How to Get Your Question Answered Quickly 

Best Regards

Yongkang Hua

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

Alex87
Solution Specialist
Solution Specialist

Can you give more details like print screens and mocking the  the original data structure , the outcome you encounter, and the expectations? The behavior you describe looks typical and expected due to the nature of the unpivot operation.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.