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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.