Dear readers
I have a query get a weekaverage of a value.
SELECT Format([Testdate],"ww",2,2),2) AS wknum, Avg([testvalue]) AS AvgVar
FROM testtable
GROUP BY Format([Testdate],"ww",2,2),2)
ORDER BY Format([Testdate],"ww",2,2),2)
unfortunately, the 1-JAN-2017 is week 52.
How can I order this chronologically?
So the average of week 52 (only 1-JAN-2017) becoming the first point in a graph or list, before week 1 (which is 2-JAN-2017)
Many thanks
Ben
I have a query get a weekaverage of a value.
SELECT Format([Testdate],"ww",2,2),2) AS wknum, Avg([testvalue]) AS AvgVar
FROM testtable
GROUP BY Format([Testdate],"ww",2,2),2)
ORDER BY Format([Testdate],"ww",2,2),2)
unfortunately, the 1-JAN-2017 is week 52.
How can I order this chronologically?
So the average of week 52 (only 1-JAN-2017) becoming the first point in a graph or list, before week 1 (which is 2-JAN-2017)
Many thanks
Ben