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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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