Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
| period | Category A | Category B | Category C |
| Jan-15 | 2 | 22 | 23 |
| Feb-15 | 3 | 55 | 67 |
| Mar-15 | 2 | 66 | 99 |
| Apr-15 | 1 | 44 | 22 |
| May-15 | 4 | 67 | 33 |
| Jun-15 | 5 | 45 | 34 |
DESIRED OUTPUT
| period | Jan-15 | Feb-15 | Mar-15 | Apr-15 | May-15 | Jun-15 |
| Category A | 2 | 3 | 2 | 1 | 4 | 5 |
| Category B | 22 | 55 | 66 | 44 | 67 | 45 |
| Category C | 23 | 67 | 99 | 22 | 33 | 34 |
THANK you!!!
Solved! Go to Solution.
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.
Proud to be a Super User!
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 ![]()
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.
Proud to be a Super User!
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 ![]()
how do i change the order of the rows under "attribute"?
how do i change the order of the rows under attribute?
@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. ![]()
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 73 | |
| 50 | |
| 46 | |
| 44 |