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
toovishant
Helper II
Helper II

How create a one stack graph with different column data.

Hi Team,

 

I have a data set where each Month/Quarter data are in column

Below is the sample table with quarter (there are other fields, but for required view these are column for different regions), I am trying to achive below stack graph

RegionSum of Q1 Total (USD)Sum of Q2 Total (USD)Sum of Q3 Total (USD)Sum of Q4 Total (USD)
Americas$52896629$49480039$54024820$53012282
APJCI$39772305$41140144$40410524$40204964
BMO$3643635$2539831$2525229$2401644
EMEA$35138313$32716731$32668598$31561920
Global$2599363$1894982$1596945$1596945
WE$4362102$4694052$4440694$4285831

 

The different legends represents regions sum for each quarter. Please help.

toovishant_0-1729079555277.png

Thank You

2 ACCEPTED SOLUTIONS
Arul
Super User
Super User

@toovishant ,

I did some changes in structure of the data(Unpivot Columns). Please refer the attached file.

Arul_0-1729081625183.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

Bibiano_Geraldo
Super User
Super User

Hi, One solution i have its you re-model the data following this steps:

1- in your power query Select the quarter columns as shown bellow:

 

Bibiano_Geraldo_0-1729081868316.png


2- Unpivot Columns:

 

Bibiano_Geraldo_1-1729081973762.png

 

3- Now your table, should look like that:

 

Bibiano_Geraldo_2-1729082059209.png

 

4- Close power query and Apply changes

 

Bibiano_Geraldo_3-1729082131628.png

 

5-Add stacked bar chart, in your x-axis add the quarter column, y-axis add the value column, and in the legend field add the Region.

 

Bibiano_Geraldo_4-1729082362429.png

 

If this answer help you, please mark it as solution.

 

View solution in original post

6 REPLIES 6
toovishant
Helper II
Helper II

@Arul - I cannot change the structure of the data set, it has other column fields in this table. But you mentioned something intersting on Unpivot can you shed more information on how can i use unpivot to change the data structure.

@toovishant ,

Check here - https://learn.microsoft.com/en-us/power-query/unpivot-column





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


@Arul - Apperciate your quick help and this helped a new features in the power BI. Thank you

Bibiano_Geraldo
Super User
Super User

Hi, One solution i have its you re-model the data following this steps:

1- in your power query Select the quarter columns as shown bellow:

 

Bibiano_Geraldo_0-1729081868316.png


2- Unpivot Columns:

 

Bibiano_Geraldo_1-1729081973762.png

 

3- Now your table, should look like that:

 

Bibiano_Geraldo_2-1729082059209.png

 

4- Close power query and Apply changes

 

Bibiano_Geraldo_3-1729082131628.png

 

5-Add stacked bar chart, in your x-axis add the quarter column, y-axis add the value column, and in the legend field add the Region.

 

Bibiano_Geraldo_4-1729082362429.png

 

If this answer help you, please mark it as solution.

 

@Bibiano_Geraldo - Thank You, the step by step guide help me and definitly like me who are new to unpivot features.

Arul
Super User
Super User

@toovishant ,

I did some changes in structure of the data(Unpivot Columns). Please refer the attached file.

Arul_0-1729081625183.png





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


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.