Order of Dimensions in View and Expand Function
Posted: Tue Jun 24, 2014 8:30 pm
We are trying to create a generic cube exporter that essentially uses a fake cube to populate a bunch of variables generically named V1, V2, etc.
Using a while loop and TABDIM we can construct the Variables for each dimension related to a cube and then use Expand to convert the string to actual values.
While the solution is working the dimensions seem to come out of order. Everything is shifted by 1. If the first dimension of the cube was Months and the second was Versions we are seeing our string for expand built as "%V1%", "%V2%". However, V1 is evaluating to the Versions dimension. Anyone know why this would occur? We built a TI manually using the view and the variables show up in the order we would have expected. Only when we try to Expand our string do we see the values getting shifted.
Using a while loop and TABDIM we can construct the Variables for each dimension related to a cube and then use Expand to convert the string to actual values.
While the solution is working the dimensions seem to come out of order. Everything is shifted by 1. If the first dimension of the cube was Months and the second was Versions we are seeing our string for expand built as "%V1%", "%V2%". However, V1 is evaluating to the Versions dimension. Anyone know why this would occur? We built a TI manually using the view and the variables show up in the order we would have expected. Only when we try to Expand our string do we see the values getting shifted.