![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi i have created a chart based on a query TRANSFORM Sum([Net ]) AS [SumOfNet] SELECT [Equip Code] FROM [TblNet_potential joined area] GROUP BY [Equip Code] PIVOT [weeknum]; this works fine puts weeknum in order ie 4 5 6 7 8 9 the question is when we move into another year how do i get the weeknum to stay in weeknum order ie 48 49 50 51 52 1 2 what i am getting is 1 2 48 49 50 51 52 |
#3
| |||
| |||
|
|
wouldn't something like ... PIVOT [year], [weeknum] do the job? Michiel "kevcar40" <kevca... (AT) btinternet (DOT) com> wrote in message news:14915a56-e429-4ed7-bb44-cf5dbbbaff8a (AT) l28g2000yqd (DOT) googlegroups.com... Hi i have created a chart based on *a query TRANSFORM Sum([Net ]) AS [SumOfNet] SELECT [Equip Code] FROM [TblNet_potential joined area] * GROUP BY [Equip Code] PIVOT [weeknum]; this works fine puts weeknum in order * ie * *4 *5 *6 * 7 *8 *9 the question is when we move into another year how do i get the weeknum to stay in weeknum *order ie *48 *49 *50 51 *52 * 1 * 2 what i am getting is * * 1 * *2 * *48 *49 *50 51 *52 --- news://freenews.netfront.net/ - complaints: n... (AT) netfront (DOT) net ---- Hide quoted text - - Show quoted text - |
#4
| |||
| |||
|
|
wouldn't something like ... PIVOT [year], [weeknum] do the job? Michiel "kevcar40" <kevca... (AT) btinternet (DOT) com> wrote in message news:14915a56-e429-4ed7-bb44-cf5dbbbaff8a (AT) l28g2000yqd (DOT) googlegroups.com... Hi i have created a chart based on a query TRANSFORM Sum([Net ]) AS [SumOfNet] SELECT [Equip Code] FROM [TblNet_potential joined area] GROUP BY [Equip Code] PIVOT [weeknum]; this works fine puts weeknum in order ie 4 5 6 7 8 9 the question is when we move into another year how do i get the weeknum to stay in weeknum order ie 48 49 50 51 52 1 2 what i am getting is 1 2 48 49 50 51 52 --- news://freenews.netfront.net/ - complaints: n... (AT) netfront (DOT) net ---- Hide quoted text - - Show quoted text - |
#5
| |||
| |||
|
|
On 13 May, 09:01, "Michiel Rapati-Kekkonen" <no-m... (AT) nonsense (DOT) zz wrote: wouldn't something like ... PIVOT [year], [weeknum] do the job? Michiel "kevcar40" <kevca... (AT) btinternet (DOT) com> wrote in message news:14915a56-e429-4ed7-bb44-cf5dbbbaff8a (AT) l28g2000yqd (DOT) googlegroups.com... Hi i have created a chart based on *a query TRANSFORM Sum([Net ]) AS [SumOfNet] SELECT [Equip Code] FROM [TblNet_potential joined area] * GROUP BY [Equip Code] PIVOT [weeknum]; this works fine puts weeknum in order * ie * *4 *5 *6 * 7 *8 *9 the question is when we move into another year how do i get the weeknum to stay in weeknum *order ie *48 *49 *50 51 *52 * 1 * 2 what i am getting is * * 1 * *2 * *48 *49 *50 51 *52 --- news://freenews.netfront.net/ - complaints: n... (AT) netfront (DOT) net ---- Hi de quoted text - - Show quoted text - i get syntax error when i put comma between fields |
![]() |
| Thread Tools | |
| Display Modes | |
| |