G
Guest
I have a cross-tab query that works fine as far it concerns the resulting
data. For business reasons, I need to change the order of appearance of the
row headers.
This is the query:
TRANSFORM Sum(tmpRptImp.izdGewTotCorr) AS SumOfizdGewTotCorr1
SELECT tmpRptImp.tmpCount, tmpRptImp.izmDat, tmpRptImp.izmCMR,
tmpRptImp.IM5, Sum(tmpRptImp.izdGewTotCorr) AS [Netto 12,5%],
Sum(tmpRptImp.izdGewTot) AS [Netto Doc]
FROM tmpRptImp
GROUP BY tmpRptImp.tmpCount, tmpRptImp.izmDat, tmpRptImp.izmCMR, tmpRptImp.IM5
PIVOT tmpRptImp.izdGrade;
It returns the row headers in the order:
izmDat, izmCMR, Netto Doc, tmpCount
where I need to see:
tmpCount, izmDat, izmCMR, Netto Doc.
Anyone a suggestion?
Tnx in advance
Ting
data. For business reasons, I need to change the order of appearance of the
row headers.
This is the query:
TRANSFORM Sum(tmpRptImp.izdGewTotCorr) AS SumOfizdGewTotCorr1
SELECT tmpRptImp.tmpCount, tmpRptImp.izmDat, tmpRptImp.izmCMR,
tmpRptImp.IM5, Sum(tmpRptImp.izdGewTotCorr) AS [Netto 12,5%],
Sum(tmpRptImp.izdGewTot) AS [Netto Doc]
FROM tmpRptImp
GROUP BY tmpRptImp.tmpCount, tmpRptImp.izmDat, tmpRptImp.izmCMR, tmpRptImp.IM5
PIVOT tmpRptImp.izdGrade;
It returns the row headers in the order:
izmDat, izmCMR, Netto Doc, tmpCount
where I need to see:
tmpCount, izmDat, izmCMR, Netto Doc.
Anyone a suggestion?
Tnx in advance
Ting