I created a crosstab query from 1 table with the following fields:
-Group by Activity_Type, Collaborating_Agency, Duration as row headings
-Group by Client_Type as column heading
-Sum of No_per_Client_Type as value
The following is the raw SQL:
TRANSFORM Sum(final.[No_per_Client_Type]) AS [SumOfNo_per_ Client_Type]
SELECT final.[Activity_Type], final.[Collaborating_Agency], final.Duration
FROM final
GROUP BY final.[Activity_Type], final.[Collaborating_Agency], final.Duration
ORDER BY final.[Activity_Type], final.[Collaborating_Agency], final.Duration
PIVOT final.[Client_Type];
When I ran the crosstab query, the numbers were correct. When I tried to export into an Excel format, the numbers became incorrect. The No_per_Client_Type was under the wrong Client_Type.
I resolved the problem by "Selecting All Records" and did a copy and paste into Excel.
I think I remember reading something about not being able to export crosstab directly into Excel without the data being corrupted. Is that correct? Or is there a better way to to do this?
Thanks,
gy
-Group by Activity_Type, Collaborating_Agency, Duration as row headings
-Group by Client_Type as column heading
-Sum of No_per_Client_Type as value
The following is the raw SQL:
TRANSFORM Sum(final.[No_per_Client_Type]) AS [SumOfNo_per_ Client_Type]
SELECT final.[Activity_Type], final.[Collaborating_Agency], final.Duration
FROM final
GROUP BY final.[Activity_Type], final.[Collaborating_Agency], final.Duration
ORDER BY final.[Activity_Type], final.[Collaborating_Agency], final.Duration
PIVOT final.[Client_Type];
When I ran the crosstab query, the numbers were correct. When I tried to export into an Excel format, the numbers became incorrect. The No_per_Client_Type was under the wrong Client_Type.
I resolved the problem by "Selecting All Records" and did a copy and paste into Excel.
I think I remember reading something about not being able to export crosstab directly into Excel without the data being corrupted. Is that correct? Or is there a better way to to do this?
Thanks,
gy