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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Christann
Advocate IV
Advocate IV

How can I pivote my data in Power BI Desktop?

Hi all,

My data looks like this:

Unpivote.JPG

I am hoping to pivote the type column so as to create one sales amount column and one Tax Rate column. I tried selecting the Type column and hit Pivote on the Transform Tab, but got all rows for both columns as the value 1. Do you have any ideas why this is happening, or what I should do differently?

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

You get the count returned.

Instead you have to go to the advanced options and choose "don't aggregate".

 

image.png

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

5 REPLIES 5
ImkeF
Community Champion
Community Champion

You get the count returned.

Instead you have to go to the advanced options and choose "don't aggregate".

 

image.png

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Thanks for the reply! I tried selecting don't aggregate but am still getting the value 1 for both columns. You can see from my previous screenshot that the data is different for the different locations.

ImkeF
Community Champion
Community Champion

Please paste screenshot of the result after the pivot.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Here is what it looks like after I pivot the data.

pivoted.JPG

 

I just tried selecting both the Type column and the Values column then Pivoting the data with Don't Aggregate which gave me the correct values. Thank you so much for your help!

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.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors