I'm using CR9 to create a budget report based on an excel spreadsheet which looks like the following:
Item# Jan-05 C Jan-05 D Feb-05 C Feb-05 D
------- -------- ---------- --------- ----------
11111 500 $15,000 450 $13,500
22222 100 $1,000 200 $2,000
33333 20 $ 20 10 $ 10
The above spreadsheet includes a budget for the next four years and the C and D represent cases and dollars respectively. My report must have month to date and year to date totals along with prior year month and prior year (YTD). What I would like to do is drive the report based on a parameter month/year entered. This is no problem. What I cannot figure out how to do is evaluate only the columns I need based on the name of the columns. I can recreate the column Names by creating a variable which = "{" + @MonthPicked + " D}" but this of course returns a string and not the value of the column. Is there a function or some other means of identifying a column at runtime?
Item# Jan-05 C Jan-05 D Feb-05 C Feb-05 D
------- -------- ---------- --------- ----------
11111 500 $15,000 450 $13,500
22222 100 $1,000 200 $2,000
33333 20 $ 20 10 $ 10
The above spreadsheet includes a budget for the next four years and the C and D represent cases and dollars respectively. My report must have month to date and year to date totals along with prior year month and prior year (YTD). What I would like to do is drive the report based on a parameter month/year entered. This is no problem. What I cannot figure out how to do is evaluate only the columns I need based on the name of the columns. I can recreate the column Names by creating a variable which = "{" + @MonthPicked + " D}" but this of course returns a string and not the value of the column. Is there a function or some other means of identifying a column at runtime?