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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Sorting By Date did not work with Barchart

Hi i have sales data with 4 columns(Date, Expected, Actual, and Returns). I created clustered bar chart with a line. 

 

domcv_0-1658342151297.png

 

For better readerbility,changed the full month name to month with 3 letters. After setting short month name i cant change the order of the date.

 

here i attached the sample pbix file.

 

https://drive.google.com/file/d/16HizesF9Si7N9J4afFBnsvWwRB_2K-4Y/view?usp=sharing

1 ACCEPTED SOLUTION
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

You can try this,

vxiaotang_2-1658766532980.png

then click sort by column

vxiaotang_3-1658766561959.png

result

vxiaotang_4-1658766587064.png

vxiaotang_5-1658766602594.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @Anonymous 

Thanks for reaching out to us.

You can try this,

vxiaotang_2-1658766532980.png

then click sort by column

vxiaotang_3-1658766561959.png

result

vxiaotang_4-1658766587064.png

vxiaotang_5-1658766602594.png

 

Best Regards,

Community Support Team _Tang

If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

I tried both method but didn't give the expected result

HotChilli
Super User
Super User

It's sorted by alphabetical order.  So quick solution : add another calculated column to give Month number which is MONTH(Sales[Date]) and use 'Sort by column' feature on the ShortMonth column.

--

The best solution is to create a calendar table and link it with 1:m relationship to Sales table.  Create the appropriate columns in Calendar table (Month, Yr, ShortMonth, monthNum etc) and use 'Sort by column' if required.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.