Forum Discussion

RickJani's avatar
RickJani
Frequent Visitor
4 years ago
Solved

Line chart not sorting by quarter

My data does not have dates (So I can't connect dates with calendar table to get quarter). But My data has quarter, Year and total sales columns. I have created a line chart and now trying to sort it using quarter and year but not getting te correct order of quarter and year. I have created quarter-Year combined column to sort the data. Any suggestions how I can sort is in correct order?

YearQuarterTotal SalesQtr-Yr
202115002021-1
202126002021-2
202138002021-3
202149002021-4
202214002022-1
202226002022-2
2022312002022-3

 

  • RickJani's avatar
    RickJani
    4 years ago

    i got my answer. On the visual, top right hand side if you click on 3 dots, it gives you an option to sort by axis and choose Year-Quarter which is the column selected for x -axis and it now sorts correctly.

     

5 Replies

  • Can you share a screenshot of the line chart so I can get a better understanding of the problem?

     

    Thanks!

    • RickJani's avatar
      RickJani
      Frequent Visitor

      i got my answer. On the visual, top right hand side if you click on 3 dots, it gives you an option to sort by axis and choose Year-Quarter which is the column selected for x -axis and it now sorts correctly.

       

    • RickJani's avatar
      RickJani
      Frequent Visitor

      I merged year and quarter column and sorting by that but still not getting the correct order.