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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

New Member

Stumped: when you need to Pivot before visualising

I have a very large dataset consisting of itemised sales by date, with columns for category, subcategory, channel of sale e.g. online/offline, price. 


I would ONLY like to create visuals based on aggregated data, such as count of sales by category, count of sales by channel. This is not just 1 isolated count/pivot table, but a series of around 10 pivots/transformations that I want to do before making any visuals. Also, I don't want to display the pivoted data in my report using Matrix, rather I want to create a graph visual from the aggregated data.


I would also like to do multi-variable pivots e.g. with channel of sale (online/offline) in the columns, and product subcategory in the rows and count of sales as the values 


FYI: I know how I can run the pivots in excel and import into PowerBi. But this just makes me favour using excel for the whole process. Is there a way I can do the pivots efficiently in Powerquery so I don't have to leave PowerBI? I.e. 1. import raw data,2. Pivot like crazy, 3. create graph visuals from this aggregated data?


Many thanks,


Community Support
Community Support

Hi  @RichieDazza ,

Whether your problem has been resolved? If yes, could you please mark the helpful post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours. Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Community Support
Community Support

Hi @RichieDazza ,

Please check if the funciton PIVOT can help you achieve your requirement in Power Query Editor...

Pivot columns


Pivot and Unpivot with Power BI



If the above ones can't help you, please provie some raw data (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.