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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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