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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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