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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
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.