R
RJF
Access 2000
Problem: Sorting the columns in a graph in ascending order according to the
"read_period" field, not the "Period" field.
Purpose: Show the comparison between the prior year data and the current
year data.
Name read_period Amounts Period
PRIOR ACTUAL 200712 758574 Period 12
PRIOR ACTUAL 200713 788824 Period 13
PRIOR ACTUAL 200801 699768 Period 01
PRIOR ACTUAL 200802 901306 Period 02
ACTUAL 200812 680414 Period 12
ACTUAL 200813 612171 Period 13
ACTUAL 200901 545913 Period 01
ACTUAL 200902 848277 Period 02
PRIOR AVERAGE 200712 770808 Period 12
PRIOR AVERAGE 200713 770808 Period 13
PRIOR AVERAGE 200801 770808 Period 01
PRIOR AVERAGE 200802 770808 Period 02
AVERAGE 200812 767428 Period 12
AVERAGE 200813 767428 Period 13
AVERAGE 200901 767428 Period 01
AVERAGE 200902 767428 Period 02
Here’s the Row Source that I am using:
TRANSFORM Sum(qry_BW_ExpVol_UNION.EXPECT_VOL) AS SumOfEXPECT_VOL
SELECT qry_BW_ExpVol_UNION.Name
FROM qry_BW_ExpVol_UNION
GROUP BY qry_BW_ExpVol_UNION.Organize, qry_BW_ExpVol_UNION.Name
ORDER BY qry_BW_ExpVol_UNION.Organize, "Period " & Right([read_period],2)
PIVOT "Period " & Right([read_period],2);
Result Wanted:
Name Period 12 Period 13 Period 01 Period 02
ACTUAL 680414 612171 545913 848277
AVERAGE 767428 767428 767428 767428
PRIOR ACTUAL 758574 788824 699768 901306
PRIOR AVERAGE 770808 770808 770808 770808
Actual Result:
Name Period 01 Period 02 Period 12 Period 13
ACTUAL 545913 848277 680414 612171
AVERAGE 767428 767428 767428 767428
PRIOR ACTUAL 699768 901306 758574 788824
PRIOR AVERAGE 770808 770808 770808 770808
Any suggestions would be appreciated.
Thank you,
Rach
Problem: Sorting the columns in a graph in ascending order according to the
"read_period" field, not the "Period" field.
Purpose: Show the comparison between the prior year data and the current
year data.
Name read_period Amounts Period
PRIOR ACTUAL 200712 758574 Period 12
PRIOR ACTUAL 200713 788824 Period 13
PRIOR ACTUAL 200801 699768 Period 01
PRIOR ACTUAL 200802 901306 Period 02
ACTUAL 200812 680414 Period 12
ACTUAL 200813 612171 Period 13
ACTUAL 200901 545913 Period 01
ACTUAL 200902 848277 Period 02
PRIOR AVERAGE 200712 770808 Period 12
PRIOR AVERAGE 200713 770808 Period 13
PRIOR AVERAGE 200801 770808 Period 01
PRIOR AVERAGE 200802 770808 Period 02
AVERAGE 200812 767428 Period 12
AVERAGE 200813 767428 Period 13
AVERAGE 200901 767428 Period 01
AVERAGE 200902 767428 Period 02
Here’s the Row Source that I am using:
TRANSFORM Sum(qry_BW_ExpVol_UNION.EXPECT_VOL) AS SumOfEXPECT_VOL
SELECT qry_BW_ExpVol_UNION.Name
FROM qry_BW_ExpVol_UNION
GROUP BY qry_BW_ExpVol_UNION.Organize, qry_BW_ExpVol_UNION.Name
ORDER BY qry_BW_ExpVol_UNION.Organize, "Period " & Right([read_period],2)
PIVOT "Period " & Right([read_period],2);
Result Wanted:
Name Period 12 Period 13 Period 01 Period 02
ACTUAL 680414 612171 545913 848277
AVERAGE 767428 767428 767428 767428
PRIOR ACTUAL 758574 788824 699768 901306
PRIOR AVERAGE 770808 770808 770808 770808
Actual Result:
Name Period 01 Period 02 Period 12 Period 13
ACTUAL 545913 848277 680414 612171
AVERAGE 767428 767428 767428 767428
PRIOR ACTUAL 699768 901306 758574 788824
PRIOR AVERAGE 770808 770808 770808 770808
Any suggestions would be appreciated.
Thank you,
Rach