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

Pls help: categorical data in y-axis for stacked column

I would like to ask about the stacked column in Power BI (as in the picture below). However, instead of showing the numerical data in Y-axis, I would like it to show the categorical data (i.e: instead of showing 1, 2, 3 I would like to show Red, Green, Grey….). The original data is categorical data (i.e: Red, Green, Grey..), but in order to create this stacked column I mapped all of them to numerical data, and I would like to show these original data in the y-axis.

Does anyone have any idea to solve this? 

Picture1.png

 

5 REPLIES 5
radhey_rec
Resolver II
Resolver II

Hi @phuongnguyen122 ,

 

Can you post some sample data, preferably in tabular format and also the resultant chart you wish to see?

 

Thanks,

Radhey

Capture.PNGPicture1.png

Hello,

Here is the table format, and what I want to see. The category in the y-axis need to be in the same order as in the graph. The order of rating category (or the attribute) need to be fix as well (eg: the lowest is rating category 1, the highest is rating category 4).

Furthermore, the program name in X-axis belongs to country group, so I will need a filter by country to be able to see the programs per country.

What I did in my post is that I converted all the rating (B to AAA) to numbers from 1 to 14, and calculate the difference between  rating categories for each program. Then I plot the stacked column. However, I need the y-axis showing the rating (B to AAA) as in the second picture. 

 

amitchandak
Super User
Super User

@phuongnguyen122 , You have to explore charticulaor

 

Charticulator Part 1 - Bar and Bar Matrix: https://youtu.be/tKgG0arMaOw

Charticulator Part 2 - Scatter with Shapes: https://www.youtube.com/watch?v=QIPsv5hNbqI

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello, 

Thank you very much for your suggestion. What I need to do is just convert the y-axis to category (Red, green, grey etc), but I would like to keep the same chart (with the numerical label) as you are seeing here. From what I understand (after google...), the Charticulor cant do so.

I am not familiar with charticulor, so pls let me know if you find something similar there.

Thank you!

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!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 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.