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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

pivot data

hello,

 

I am new to powerbi. I have tried to use my data below to pivot to my desired output and i am struggling and it is not working. Any help will be definitely helpful to me.

 

periodCategory ACategory BCategory C
Jan-1522223
Feb-1535567
Mar-1526699
Apr-1514422
May-1546733
Jun-1554534

 

DESIRED OUTPUT

periodJan-15Feb-15Mar-15Apr-15May-15Jun-15
Category A232145
Category B225566446745
Category C236799223334

 

 

THANK you!!!

2 ACCEPTED SOLUTIONS
KHorseman
Community Champion
Community Champion

In the query editor, select your Period column and hit Unpivot Other Columns. Then select Period again and hit Pivot Column. Value should be the Values column, then open the advanced options and change it to Don't Aggregate.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

Sean
Community Champion
Community Champion

I would only select Period and Upivot Other Columns

Then create a Matrix place Period in Columns, Category (Attribute) in Rows and Value in Values

The data will remain in better shape for analysis than your final desired output but you'll still be able to achieve it Smiley Happy

View solution in original post

5 REPLIES 5
KHorseman
Community Champion
Community Champion

In the query editor, select your Period column and hit Unpivot Other Columns. Then select Period again and hit Pivot Column. Value should be the Values column, then open the advanced options and change it to Don't Aggregate.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Sean
Community Champion
Community Champion

I would only select Period and Upivot Other Columns

Then create a Matrix place Period in Columns, Category (Attribute) in Rows and Value in Values

The data will remain in better shape for analysis than your final desired output but you'll still be able to achieve it Smiley Happy

Anonymous
Not applicable

how do i change the order of the rows under "attribute"?

Anonymous
Not applicable

how do i change the order of the rows under attribute?

KHorseman
Community Champion
Community Champion

@Seanusually I'm the one who tells people they should use a different method instead of just telling them how to get the thing they asked for. Smiley LOL





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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.

Top Solution Authors
Top Kudoed Authors