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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
riegersn
Helper I
Helper I

Help formatting this bar chart, why are they grouped togeather

I'm struggling to figure out why all the bars are grouped together and I can't get them to show the labels underneath each bar. Any help would be much appreciated! 

 

I'm trying to get this...

Messages Image(2467930738).png

 

To look more like this...

Messages Image(4045533938).png

 

My data looks like this...

Messages Image(2907134398).png

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

HI  @riegersn 

You need to adjust your data model as below:

https://radacad.com/pivot-and-unpivot-with-power-bi

In edit queries, Selected S1,S2,S3,...S9. then unpivot them.

For example:

17.JPG

18.JPG

Now create a bar chart, drag [Attribute] to x-Axis and [Value] to Values and set average.

Of courese, you could rename the columns.

 

and here is sample pbix file, please try it.

 

Regards,

Lin

Community Support Team _ Lin
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
riegersn
Helper I
Helper I

Thanks all! Unpivot solved it!

v-lili6-msft
Community Support
Community Support

HI  @riegersn 

You need to adjust your data model as below:

https://radacad.com/pivot-and-unpivot-with-power-bi

In edit queries, Selected S1,S2,S3,...S9. then unpivot them.

For example:

17.JPG

18.JPG

Now create a bar chart, drag [Attribute] to x-Axis and [Value] to Values and set average.

Of courese, you could rename the columns.

 

and here is sample pbix file, please try it.

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @riegersn ,

 

I think that's because you didn't put any field into Axis,

 

Help formatting this bar chart, why are they grouped togeather.PNG

 

Based on your data model, you may need to unpivot your table to show what you want.

 

Aiolos Zhao

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors