juanito
Member
I have an 2D array - in the name manager, not the grid. My model uses INDEX to return discrete columns of this array. So if the array's name is "d", then to return the third column I have:
INDEX(d,,3)
(This is using the awesome power of omitting the row argument in INDEX - you get them all!)
But now I have a problem. Depending on a number the dashboard user selects, I want to return a number of columns (the columns are individual months which after processing will be passed to a chart). Say she selects five. My model generates a vector called "col_vec" of {1,2,3,4,5} and uses the following formula:
INDEX(d,,col_vec)
And it doesn't work! Looks like INDEX won't pick up an array, and so won't return a series of vectors.
Can anyone think of a workaround for this?
- Juanito
INDEX(d,,3)
(This is using the awesome power of omitting the row argument in INDEX - you get them all!)
But now I have a problem. Depending on a number the dashboard user selects, I want to return a number of columns (the columns are individual months which after processing will be passed to a chart). Say she selects five. My model generates a vector called "col_vec" of {1,2,3,4,5} and uses the following formula:
INDEX(d,,col_vec)
And it doesn't work! Looks like INDEX won't pick up an array, and so won't return a series of vectors.
Can anyone think of a workaround for this?
- Juanito