Hi All
I have created a pivot chart based on a query. at present along the bottom axis i have the month, which is ordering aphabetically instead of by month. My query when shown shows ordered by month but when shown on pivot chart it reverts to aphabetic
Can anyone help, i really need this months as they appear throughout the year, below is SQL for my query
SELECT DISTINCTROW Format$([SalesReport].[Month],'mmmm yyyy') AS [Month By Month], Sum(SalesReport.SalesValue) AS [Sum Of SalesValue], Sum(SalesReport.TargetValue) AS [Sum Of TargetValue], Sum(SalesReport.TargetPerc) AS [Sum Of TargetPerc], Sum(SalesReport.GrowthPerc) AS [Sum Of GrowthPerc], [SalesValue]*(100/(100+(100*[GrowthPerc]))) AS [SalesValue-1]
FROM SalesReport
WHERE month>=DateSerial(Year(Date())-1,Month(Date())+1,0)
GROUP BY Format$([SalesReport].[Month],'mmmm yyyy'), [SalesValue]*(100/(100+(100*[GrowthPerc]))), Year([SalesReport].[Month])*12+DatePart('m',[SalesReport].[Month])-1
ORDER BY Year([SalesReport].[Month])*12+DatePart('m',[SalesReport].[Month])-1;
Ali
I have created a pivot chart based on a query. at present along the bottom axis i have the month, which is ordering aphabetically instead of by month. My query when shown shows ordered by month but when shown on pivot chart it reverts to aphabetic
Can anyone help, i really need this months as they appear throughout the year, below is SQL for my query
SELECT DISTINCTROW Format$([SalesReport].[Month],'mmmm yyyy') AS [Month By Month], Sum(SalesReport.SalesValue) AS [Sum Of SalesValue], Sum(SalesReport.TargetValue) AS [Sum Of TargetValue], Sum(SalesReport.TargetPerc) AS [Sum Of TargetPerc], Sum(SalesReport.GrowthPerc) AS [Sum Of GrowthPerc], [SalesValue]*(100/(100+(100*[GrowthPerc]))) AS [SalesValue-1]
FROM SalesReport
WHERE month>=DateSerial(Year(Date())-1,Month(Date())+1,0)
GROUP BY Format$([SalesReport].[Month],'mmmm yyyy'), [SalesValue]*(100/(100+(100*[GrowthPerc]))), Year([SalesReport].[Month])*12+DatePart('m',[SalesReport].[Month])-1
ORDER BY Year([SalesReport].[Month])*12+DatePart('m',[SalesReport].[Month])-1;
Ali