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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Pivot chart doesnt sort custom date correctly

Hi experts,
I need the following format on my date "dd/mm/yyyy ddd" (31/12/2021 Sun) so I am using the format function on powerpivot to get the date in that format, however when I do that, my chart doesn't sort the date correctly. See pic below
 
Correct sorting using standard date format
 
 
guinaba_2-1629070451713.png

Incorrect sorting using formatted date

guinaba_3-1629070554067.png

Any suggestion? 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks @Anonymous , I ended up solving the problem sorting out the column based on another col. which was date type

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

@Anonymous That's because using FORMAT changes the data to Text and not Date. You will need a Sort By column most likely or try using custom format strings. See Chelsie Eiden's Duration. Chelsie Eiden's Duration - Microsoft Power BI Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

 

Thanks @Greg_Deckler , however not sure how I could adjust your suggestion (link) from hours to days. I have tried to change the date format, still using the date format, but not sure why Excel doesn't recognize it. Using Sort by column doesn't work either. I am not using powerbi, just excel.

 

guinaba_0-1629107176646.png

 

Anonymous
Not applicable

Hi @Anonymous ,

The line chart can sort by the date field correctly even though set the format of the date field as "dd/mm/yyyy ddd" just as shown in below screenshot...

yingyinr_0-1629272299683.png

In addition, please review the content in the following links, hope they can help you resolve the problem.

Excel Won't Sort Dates Correctly - The Solution!

How to sort by date in Excel: in chronological order, by month, auto sort

Best Regards

Anonymous
Not applicable

Thanks @Anonymous , I ended up solving the problem sorting out the column based on another col. which was date type

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.