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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

How to Cluster Quarters for Comparison Year over Year

Trying to replicate a basic pivot table from excel.

 

Data:

 Q1Q2Q3Q4Average
F20205710176537
F20215615125033
F2022384300

 

Pivot table in Excel:

Canknucklehead_0-1637265950724.png

 

Clustered bar chart in Power BI clusters all the quarters + average in a year together.

 

Canknucklehead_1-1637266194889.png

 

I've tried different fields for the Axis, Legend and Values. This format is the closest I can get (Axis is Year, no Legend, Values are Quarters).

 

What am I missing?

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

You need to unpivot other columns in Power Query first.

vjaneygmsft_1-1637565061926.png

Then use these columns in Clustered bar chart.

Like this:

vjaneygmsft_2-1637565113135.png

 

vjaneygmsft_0-1637565014488.png

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,
Community Support Team _ Janey

View solution in original post

2 REPLIES 2
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

You need to unpivot other columns in Power Query first.

vjaneygmsft_1-1637565061926.png

Then use these columns in Clustered bar chart.

Like this:

vjaneygmsft_2-1637565113135.png

 

vjaneygmsft_0-1637565014488.png

Did I answer your question ? Please mark my reply as solution. Thank you very much.
If not, please feel free to ask me.


Best Regards,
Community Support Team _ Janey

Anonymous
Not applicable

That's got me sorted, @v-janeyg-msft . Many thanks!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.