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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Sort Line Graph Newest to Oldest

 

I would do display this graph with the most recent values on the left and the older values on the right.  Please advise.

 

BI Pic.png

 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous

 

I would suggest going into the Query Editor and making sure that the Data Type is set to DateTime. Once that has been done, the data should be re-loaded and the sorting option should appear





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

4 REPLIES 4
lokeshkondayyan
New Member

Even after changing the data type to date this sort option is not visible

GilbertQ
Super User
Super User

Hi @Anonymous

 

What you would need on your X-Axis is your date field so that it can show it over time. 

 

If the sorting is still out you can click on the three dots "..." and it will give you the option to "Sort By", then select Sort By Date if that is your column name and the line graph should then show it in the correct way.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Anonymous
Not applicable

The options after clicking the three dots are:

  • Export data
  • Show data
  • Remove
  • Spotlight

So, I assume it's because the x-Asis is not formated as a date field.  Which might be true, but doesn't solve my problem.  My x-Axis includes date and time.   It's reading a cell I get every hour coming from an Excel spreadsheet, which is in Date format, specifically " [$-en-US]m/d/yy h:mm AM/PM;@  ".  

 

I can't "sort" on that and haven't figured out a work around.

 

Thanks 

 

 

 

 

 

 

Hi @Anonymous

 

I would suggest going into the Query Editor and making sure that the Data Type is set to DateTime. Once that has been done, the data should be re-loaded and the sorting option should appear





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors