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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
sparker22
Frequent Visitor

Starting X axis at April

I have a line chart with monthly figures as well as by financial year in the legend.

Is it possible to have the X axis start at April rather than January?

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@sparker22 , Create a sort column like this

 

month = format([Date], "mmm")

Month Sort =

var _mn = month([Date])

return

if(_mn >=4, _mn -3, _mn+ 9)

 

Sort month on month sort

 

month year =  format([Date], "mmm-yyyy")

Month year sort =  [FY as Year] *100 + [Month sort] // [FY as Year] is taken from year start date

 

Sort Month.png

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@sparker22 , Create a sort column like this

 

month = format([Date], "mmm")

Month Sort =

var _mn = month([Date])

return

if(_mn >=4, _mn -3, _mn+ 9)

 

Sort month on month sort

 

month year =  format([Date], "mmm-yyyy")

Month year sort =  [FY as Year] *100 + [Month sort] // [FY as Year] is taken from year start date

 

Sort Month.png

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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