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
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

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

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.