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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
stribor45
Post Prodigy
Post Prodigy

Line Chart - x axis

I have the table where my data column looks like this but my visual is showing data ordered by months (January comes before December) I would like the first data point to be the oldest one. So x-axis should start with July 2022, and August 2022........March 2023 and April 2023.  Can this be accoplished?

 

 

 

 

stribor45_0-1680548550463.png

stribor45_2-1680548683073.png

 

 

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@stribor45 , better use year of axis and expand and switch off concatenate label -off

 

Or sort your month on this column

 

month  = if(month([Date]) <7, month([Date])+6 , month([Date])-6)

 

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

stribor45
Post Prodigy
Post Prodigy

Reformating the date to MMMM YYYYY and changing the axis type to "Categorical" resolved it for me.

 

stribor45_0-1681173951013.png

 

View solution in original post

3 REPLIES 3
NicJik
New Member

Thank u for help!

stribor45
Post Prodigy
Post Prodigy

Reformating the date to MMMM YYYYY and changing the axis type to "Categorical" resolved it for me.

 

stribor45_0-1681173951013.png

 

amitchandak
Super User
Super User

@stribor45 , better use year of axis and expand and switch off concatenate label -off

 

Or sort your month on this column

 

month  = if(month([Date]) <7, month([Date])+6 , month([Date])-6)

 

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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.