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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
I want to pivot the "charge_name" column shown below with 10+ catagories:
I need to pivot using two value fields, qty and amount respectively:
Here's how I did it: I duplicated the charge name column and pivoted the columns using amount and quantity respectively.
I also had to change the pivoted column names otherwise i would get duplicate error when I do quantity.
Is there a better/smarter way to do this?
Any suggestion appreciated,
Thanks!
@bestbestb
I don't know your solution step by step so it is hard to say. I cannot think of any better without any test. If you already have a solution, should stick with it. Simple pivot and unpivot steps would not slow the query speed.
Paul Zheng _ Community Support Team
There may be a better way, but your approach is probably the one I would have taken.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.