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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

No spacing between bars in bar chart - separate bars on x-axis

Hello, I have seen that some posts already exist regarding this topic but I could not find a solution that worked out for me.

 

Currently I'm not able to separate the bars in my bar chart on the x-axis (no inner padding). I think the problem is that they are treated as one category. The variables - which I want to display as separate bars of a bar chart - are columns in one single table (see screenshot). I would therefore need some additional variable which lets me spilt them on the x-axis.

 

Category Problem.PNG

 

I hope someone has a solution for my problem.

 

Best regards

1 ACCEPTED SOLUTION
Anonymous
Not applicable

heya, i can work with that 😉

 

Before we talk visuals i'd like to show you how to unpivot the data:

i used the following sample data (based on ur screenshot)

Feedback1.png

Since you are already in the report, press edit queries:

feedback2.png

Then go to the transform tab and select all the PM columns. (dont select the feedback number column) and press unpivot columns.

feedback3.png

The result looks like this. You can rename attribute and value as you like.

feedback4.png

Now press close & Apply to work on your visuals.

feedback5.png

 

Im not entirely sure how you'd like to show it. In the example screenshot i see only one feedback number displayed. Will there allways be 1 displayed? As im unsure i made a couple examples. I will show the visual and the used filters/fields respectively.
feedback 6.png

feedback 7.png

feedback 8.png

i hope this helps. 🙂

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

If you (un)pivot the data it will do the trick 🙂 if you have sample data i can create a example pbix file for you.

Anonymous
Not applicable

I hope the table works for you. I don't know how to add files to this post.

Anonymous
Not applicable

Feedback: Feedback NamePM: Overall satisfactionPM: CommunicationPM: Communication of changesPM: QualityPM: ResultsPM: TimingPM end: Continous businessPM end: Fulfilment of needsPM end: Pricing
Feedback-0000000208555555555
Feedback-0000000209444444444
Feedback-0000000210333333333
Feedback-0000000211555555555
Feedback-0000000212222222222
Feedback-0000000213444444444
Feedback-0000000214444444444
Feedback-0000000215333333333
Feedback-0000000216111111111
Feedback-0000000217555555555
Feedback-0000000218444444444
Feedback-0000000219222222222
Feedback-0000000220111111111
Anonymous
Not applicable

heya, i can work with that 😉

 

Before we talk visuals i'd like to show you how to unpivot the data:

i used the following sample data (based on ur screenshot)

Feedback1.png

Since you are already in the report, press edit queries:

feedback2.png

Then go to the transform tab and select all the PM columns. (dont select the feedback number column) and press unpivot columns.

feedback3.png

The result looks like this. You can rename attribute and value as you like.

feedback4.png

Now press close & Apply to work on your visuals.

feedback5.png

 

Im not entirely sure how you'd like to show it. In the example screenshot i see only one feedback number displayed. Will there allways be 1 displayed? As im unsure i made a couple examples. I will show the visual and the used filters/fields respectively.
feedback 6.png

feedback 7.png

feedback 8.png

i hope this helps. 🙂

Anonymous
Not applicable

you're awesome, thank you so much! 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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