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
dcasana
New Member

Creating stacked chart from 4 different tables

Hi, 

 

I am creating a Power BI report using data from 4 different tables. Each table contains data for a different category - for instance, one table has data for all BLUE items, another table has data for all RED items, etc. There isn't a column that says BLUE or RED, but every line on each table pertains to that category.

 

I need to create a stacked chart that on the Y axis shows the different categories (BLUE, RED, etc.), and on the X axis shows the status of each category (i.e., blue open/closed, red open/closed, etc.)

 

Is this possible? I'm having trouble with what to put on the Y axis to accomplish this. I already have the counts of open/closed for each category on the X axis. I'm just stuck as to what to put on the Y axis. Thank you!

1 ACCEPTED SOLUTION
CoreyP
Solution Sage
Solution Sage

You should add a column in Power Query to each table with the value of the category. So, new column: Category = "Blue". Do this so each table now has a column called Category with the appropriate value in the column. Then append all the tables so you have one table with all data and a column called category.

View solution in original post

2 REPLIES 2
CoreyP
Solution Sage
Solution Sage

You should add a column in Power Query to each table with the value of the category. So, new column: Category = "Blue". Do this so each table now has a column called Category with the appropriate value in the column. Then append all the tables so you have one table with all data and a column called category.

Thank you! That worked. 

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.