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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

complex data manipulation

Hi all, I hope you're all well. I have a dataset that I cannot understand or know how to pivot it to the way that will help me build my dashboard in powerbi. Currently the Years are in column and I would like to bring them in rows.

 

Currently: Countries are in Rows and years are in columns. 

Desired. I would like to bring years in the rows too.

 

So my tableau or powerbi can easily process. thank you so much for your kind help. 

2 REPLIES 2
v-shex-msft
Community Support
Community Support

HI @Anonymous,

 

The simple way is create a matrix visual and drag year column to column fields and category column to axis fields, it will analytics and expand year to multiple column.

 

You can also consider to use query edit pivot column function to expand one column to multiple columns.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
elJukes
Helper I
Helper I

Hi @Anonymous

 

In the Query Editor, go to the table with countries and years in. Once there highlight all of the columns with years in and then, under the transform menu, select Unpivot Columns.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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