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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Jeanxyz
Post Prodigy
Post Prodigy

sort Year Month axis in charticulator

I need to create a line chart in charticulator. My x axis is Year Month from Dim_Date table, I want to sort Year Month by ascending order, something like 2021/Jan, 2021/Feb.... 

In charticulator Plot attributes, I have set up X axis to be  sorted by Yearmonth number (integer format), but it doesn't seem to work. 

sort charticular year month axis.png

1 ACCEPTED SOLUTION
Jeanxyz
Post Prodigy
Post Prodigy

I figured it out. instead of sort Year Month Short by YearMonthNumber (integer), I should sort by YearMonthNumber_Text. 

so I have created a new column in Dim_Date tabel

YearMonthNumber_Text=convert([YearMonthNumber],String)

and use this new field to sort chartculator

click sort

charticulator ym solved.png

 

View solution in original post

1 REPLY 1
Jeanxyz
Post Prodigy
Post Prodigy

I figured it out. instead of sort Year Month Short by YearMonthNumber (integer), I should sort by YearMonthNumber_Text. 

so I have created a new column in Dim_Date tabel

YearMonthNumber_Text=convert([YearMonthNumber],String)

and use this new field to sort chartculator

click sort

charticulator ym solved.png

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.