Sort on Report Chart

Hi

have setup a view which gives a breakdown of orders per month, struggling to get it sort on the month name or no:



any ideas?

Parents
  • 0

    Not sure what you are trying to accomplish.

  • 0 in reply to dskantor

    i want to be able to sort the graph by month at the moment its sorting as follows:



    this is an example view im working with:

    SELECT
            YEAR(Q.quot_opened) AS orde_year,
            MONTH(Q.quot_opened) AS orde_month_number,
            COUNT(*) AS total_quotes_count,
            SUM(Q.quot_nettamt) AS total_quotes_value
        FROM vQuotes Q
        WHERE YEAR(Q.quot_opened) = YEAR(GETDATE())
          AND Q.Quot_Deleted IS NULL
        GROUP BY
            YEAR(Q.quot_opened),
            MONTH(Q.quot_opened),
            DATENAME(MONTH, Q.quot_opened)

Reply
  • 0 in reply to dskantor

    i want to be able to sort the graph by month at the moment its sorting as follows:



    this is an example view im working with:

    SELECT
            YEAR(Q.quot_opened) AS orde_year,
            MONTH(Q.quot_opened) AS orde_month_number,
            COUNT(*) AS total_quotes_count,
            SUM(Q.quot_nettamt) AS total_quotes_value
        FROM vQuotes Q
        WHERE YEAR(Q.quot_opened) = YEAR(GETDATE())
          AND Q.Quot_Deleted IS NULL
        GROUP BY
            YEAR(Q.quot_opened),
            MONTH(Q.quot_opened),
            DATENAME(MONTH, Q.quot_opened)

Children