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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Kitty-SD
Frequent Visitor

Keep Duplicate X-axis Categories on a Graph

I'm trying to build a clustered column chart to show number of bookings (Y-axis) by guest name (X-axis). The problem is that there is one instance of two different guests with the same name. This wouldn't be a problem in a table, because I'd add the unique customer ID, but on a column chart, Power BI is grouping the two guests together as if they are the same person and showing the sum of both of their bookings. My normal solution to this would be to create a custom column of customer name + customer ID and then use that new field as the X-axis, but this looks very clunky and isn't as easy to read. Is there any way to avoid this or at least make the X-axis labels easier to read? 

 

KittySD_0-1708530013767.png

 

In an ideal world, I'd have two separate bars for Ms Helen Jones, without having to add the guest ID to the X-axis label to show Power BI that they're separate guests. 

 

Thanks in advance!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Kitty-SD 

If you already include legend, then you can only append their IDs to the end of the customer's name if you want to display different customers with the same name on the x-axis, because if there is no specific column (e.g. customer ID), it will be automatically aggregated when you put the same name on the x-axis.

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Kitty-SD 

You can put the guset id to legend, then close the legend tab in properity.

vxinruzhumsft_0-1708570765533.png

 

vxinruzhumsft_1-1708570773203.png

Output

vxinruzhumsft_2-1708570781376.png

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Hi @Anonymous thanks for your suggestion. My issue is that a) I already have a legend on the graph that I'd quite like to include (sorry, I should have mentioned this!) and b) adding the Guest ID as the legend seems to make guests with 0 bookings appear at random places in the graph:

 

KittySD_1-1708596184570.png

 

This is even after I've sorted the X-axis by booking volume in descending order. This resolves itself once I remove the Guest ID legend.

 

This is what my original graph looks like; you can see where there are two different guests (belonging to two different loyalty clubs) grouped together:

 

KittySD_2-1708596280720.png

 

Thanks,

Kitty

Anonymous
Not applicable

Hi @Kitty-SD 

If you already include legend, then you can only append their IDs to the end of the customer's name if you want to display different customers with the same name on the x-axis, because if there is no specific column (e.g. customer ID), it will be automatically aggregated when you put the same name on the x-axis.

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

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.

Top Solution Authors