I need to do the following:
CustID / YTD Total / Jan Price / Feb Price / Mar Price / Apr Price / May Price
CustGroup A
10 / 141,646 / 12,964 / 32,150 / 47,951 / 25,457 / 23,123
1 / 67,542 / 10,333 / 13,151 / 26,326 / 7,826 / 9,906
4 / 3,070 / 1,320 / 1,386 / 0 / 181 / 181
CustGroup B
6 / 629,385 / 1,449 / 482,889 / 128,341 / 12,225 / 4,461
3 / 560,162 / 311,142 / 76,233 / 4,904 / 71,664 / 96,219
2 / 247,743 / 0 / 1,200- / 54,426 / 24,182 / 170,335
A detail field, ExtPrice, is used to calculate all column and row totals (using running totals). One row is for totals by CustID, which is the total I need to have for YTD Price for sorting in descending sequence (as shown above).
How do I keep my running totals and still be able to sort by YTD Price (descending) for a CustID within the CustGroup?
CustID / YTD Total / Jan Price / Feb Price / Mar Price / Apr Price / May Price
CustGroup A
10 / 141,646 / 12,964 / 32,150 / 47,951 / 25,457 / 23,123
1 / 67,542 / 10,333 / 13,151 / 26,326 / 7,826 / 9,906
4 / 3,070 / 1,320 / 1,386 / 0 / 181 / 181
CustGroup B
6 / 629,385 / 1,449 / 482,889 / 128,341 / 12,225 / 4,461
3 / 560,162 / 311,142 / 76,233 / 4,904 / 71,664 / 96,219
2 / 247,743 / 0 / 1,200- / 54,426 / 24,182 / 170,335
A detail field, ExtPrice, is used to calculate all column and row totals (using running totals). One row is for totals by CustID, which is the total I need to have for YTD Price for sorting in descending sequence (as shown above).
How do I keep my running totals and still be able to sort by YTD Price (descending) for a CustID within the CustGroup?