Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi all,
My data looks like this:
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?
Solved! Go to Solution.
You get the count returned.
Instead you have to go to the advanced options and choose "don't aggregate".
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
You get the count returned.
Instead you have to go to the advanced options and choose "don't aggregate".
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.
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.
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!