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
Anonymous
Not applicable

How To Sort X Axis By Concurrent Month and Year

I have a stacked bar chart showing total support tickets by type (incident or request) over a 26 month period. I have the MonthYear values in the X axis. What I need to show in the X axis is each month grouped by year, so, January 2020 January 2021 and January 2022 will be grouped together, Februay's, March's, etc. all in ascending order. Here's the chart from BI desktop so far....

 

tharp02_0-1644350337737.png

You can see that BI is showing the names of the month in alphabetical ascending order, which isn't what I need. This is what I need the chart to look like (this was done in Excel by exporting the chart data out to a csv file):

 

tharp02_1-1644350438921.png

 

I know there's a way to make this work in BI but I'm not able to come up with the specific axis settings to make it do this. Any ideas?

 

EDIT:  I've been able to get the months grouped by year, but the ordering of the months still is not correct - it's still alphabetical. I need to groupings to be in the proper month sequence - Jan, Feb, Mar, Apr.....etc.

 

tharp02_0-1644355583106.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , For month create a month sort order and mark that as the sort column

 

Month Year = FORMAT([Date],"mmm")
Month Year sort = month([DAte])

 

Sort Month.png

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

 

Concatenate Label off : https://youtu.be/QgI0vIGIOOk

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , For month create a month sort order and mark that as the sort column

 

Month Year = FORMAT([Date],"mmm")
Month Year sort = month([DAte])

 

Sort Month.png

 

How to Create Sort Column and Solve Related Errors:
https://www.youtube.com/watch?v=KK1zu4MBb-c

 

Concatenate Label off : https://youtu.be/QgI0vIGIOOk

Anonymous
Not applicable

Thank you, Amit, that worked.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.