Forum Discussion
Sort chronologically x axis based on date and time column
- 5 years ago
Hello Anonymous ,
Thank you for your answer.
Comparing with your data, I thought everything was equal, but then I noticed that the problem was related to the legend. In fact, when I excluded it, dates are sorted chronologically.
I think the problem is related to the model structure. The chosen column for the legend is from another table. This table is not connected directly to the table that I'm using for the values on the y and x axis and the relationship between both tables are many to many. Now I'm trying to recreate the model to be possible to include the legend and keep x axis sorted chronologically.
Best regards,
Yes, I’m sure. I also tried to change it to “sort by y –axis” to validate and the dates appear more random (than before) like 2018, 2019, 2016, 2014, 2019, 2019, 2019. Moreover, when I select “sort by date column” and “sort descending”, the first dates appearing in the visual are in fact the last years, but again sorted only partially chronologically.