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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
chahine
New Member

combine rows with columns

Hi all, 

 

The table bellow has period, attributes, Atucal and Plan columns. the 33 rows correspond to the attributes (picutre1).

 

I'd like to change table structures: it would have 2 rows that correspond to the period, and 33*2 columns. the colums would be structured as follow:  Attribute1_acual, Atribute1_plan, Attribute2_acual, Atribute2_plan, ..., Attribute_n_acual, Atribute_n_plan

As shown in picture 2.

 

I spent the entire day but didnn't succed to find a proper solution. therefore I will appreciate your help!

Thank

 

MicrosoftTeams-image (4).png

 

MicrosoftTeams-image (5).png

1 ACCEPTED SOLUTION
truptis
Community Champion
Community Champion

Hi @chahine , Try to do Pivot/unpivot this only then it will give you the desired structure that you want(33*2).

View solution in original post

2 REPLIES 2
truptis
Community Champion
Community Champion

Hi @chahine , Try to do Pivot/unpivot this only then it will give you the desired structure that you want(33*2).

Hi @truptis Thank you! it worked after several Pivot/Unpivot 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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 community update carousel

Fabric Community Update - June 2025

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