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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Anonymous
Not applicable

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

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.