I am pretty new to Telerik reporting. So I will try to explain the issues I am facing.
I have a report that binds to the following stored procedure
this works as expected as in displaying the correct results in month order. When this sproc gets bound to the report the months are in alphabetical order and not in month order. As you can see attached
I also tried to write the sproc differently and this works both with ASC and DESC
SELECT DATENAME(mm, Sales.SaleOrderDate) AS MonthOfSale ,
SUM(Quotes.NETPrice) AS SalesValue ,
Source.Source
FROM Quotes
INNER JOIN Sales ON Quotes.QuoteId = Sales.QuoteId
INNER JOIN Enquiry ON Quotes.EnquiryId = Enquiry.EnquiryId
INNER JOIN Source ON Enquiry.SourceId = Source.SourceId
GROUP BY Sales.SaleOrderDate,
Source.Source
ORDER BY MONTH(Sales.SaleOrderDate) ASC
Is there a way around this?
Many thanks
I have a report that binds to the following stored procedure
CREATE
PROCEDURE
GetSalesValue
AS
SELECT
DATENAME(mm, Sales.SaleOrderDate)
AS
MonthOfSale ,
SUM
(Quotes.NETPrice)
AS
SalesValue ,
Source.Source
FROM
Quotes
INNER
JOIN
Sales
ON
Quotes.QuoteId = Sales.QuoteId
INNER
JOIN
Enquiry
ON
Quotes.EnquiryId = Enquiry.EnquiryId
INNER
JOIN
Source
ON
Enquiry.SourceId = Source.SourceId
GROUP
BY
Sales.SaleOrderDate,
Year
(Sales.SaleOrderDate),
Source.Source
this works as expected as in displaying the correct results in month order. When this sproc gets bound to the report the months are in alphabetical order and not in month order. As you can see attached
I also tried to write the sproc differently and this works both with ASC and DESC
SELECT DATENAME(mm, Sales.SaleOrderDate) AS MonthOfSale ,
SUM(Quotes.NETPrice) AS SalesValue ,
Source.Source
FROM Quotes
INNER JOIN Sales ON Quotes.QuoteId = Sales.QuoteId
INNER JOIN Enquiry ON Quotes.EnquiryId = Enquiry.EnquiryId
INNER JOIN Source ON Enquiry.SourceId = Source.SourceId
GROUP BY Sales.SaleOrderDate,
Source.Source
ORDER BY MONTH(Sales.SaleOrderDate) ASC
Is there a way around this?
Many thanks