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

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.

Reply
Anonymous
Not applicable

Clustered columns with unpivot input table

I have an input data with this structure:

 

RegionCountryCityYearMonthMetricValue
EMEAFranceParis20211Sales1000
EMEAFranceParis20212Sales900
EMEAFranceParis20201Sales750
EMEAGermanyBerlin20215Sals500

 

 

I would like to create a clustered column charts where X-axis is the months (1-12) and the columns represent the years (so for example pairs of two columns, one for 2020 and another for 2021).

 

So the chart might compare the sales by month for Paris for the years 2020 and 2021.

With my current table structure I cant get this chart.

 

Ideally I don't want to pivot the table (if possible) since in the dashboard I want to add other charts with different combinations in the columns.

1 ACCEPTED SOLUTION
HotChilli
Super User
Super User

4 REPLIES 4
HotChilli
Super User
Super User

Screenshot 2023-10-17 144910.png

Anonymous
Not applicable

Nice! That works.

 

One more thing, if I had a third year (ie. 2022), would it be possible to add it on top as a line (ie. line and stacked column chart)? I tried, but I think it's not straightforward.

Anonymous
Not applicable

The idea is a table like below. So the year columns have to be side by side (instead of first 2020 columns and then 2021).

 

I can easily get this chart if I pivot the original table, but I have many other columns and will use the input data for other tables and charts in the same dashboard.

 

tatoon_0-1697549828957.png

 

HotChilli
Super User
Super User

Can you mock up a quick picture of what you want so that we are clear about the requirements?

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors