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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
VitaliiCH17
Frequent Visitor

How to group data on the X axis?

Hi,

 

In my report, I have a bar chart with Year-month on the X axis, but values are presented in YY/MM format.

VitaliiCH17_1-1676364267026.png

I would like to present them in a 'grouped' style as on the screen below:  

VitaliiCH17_0-1676364000222.png

I can't find any guide to do this.

Could you please help to solve the problem?

Regards,

Vitalii

 

2 ACCEPTED SOLUTIONS
VitaliiCH17
Frequent Visitor
Arul
Super User
Super User

@VitaliiCH17 ,

Can you follow the below steps?

You must need three columns to achieve this,

required columns are,
1. Year

2. Quarter

3. Monthname (It should be sorted based on month number)
then use those 3 columns in X-axis (refer the image attached) and measure in Y axis and do expand all down one level in the hierarchy option at the top right of the visual (refer the image attached).

Arul_2-1676369173047.png


and to get the solid line on the X-axis, Increase the width of the gridlines (vertical) option (style - solid) from the formating pane (refer the immediate next image attached) ,

Arul_1-1676369090359.png

 

Arul_0-1676368972031.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

2 REPLIES 2
Arul
Super User
Super User

@VitaliiCH17 ,

Can you follow the below steps?

You must need three columns to achieve this,

required columns are,
1. Year

2. Quarter

3. Monthname (It should be sorted based on month number)
then use those 3 columns in X-axis (refer the image attached) and measure in Y axis and do expand all down one level in the hierarchy option at the top right of the visual (refer the image attached).

Arul_2-1676369173047.png


and to get the solid line on the X-axis, Increase the width of the gridlines (vertical) option (style - solid) from the formating pane (refer the immediate next image attached) ,

Arul_1-1676369090359.png

 

Arul_0-1676368972031.png

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


VitaliiCH17
Frequent Visitor

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.