![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
But working with those formula, i started to see selected dimensions over axis(0). Someone know if a patch exists for this problem. Regards, Mariana. |
#3
| |||
| |||
|
|
what is the formula? do you receive the error when there is nothing in the rows axis? "Mariana" <melelen (AT) hotmail (DOT) com> wrote in message news:%23vaigryuGHA.1288 (AT) TK2MSFTNGP02 (DOT) phx.gbl... But working with those formula, i started to see selected dimensions over axis(0). Someone know if a patch exists for this problem. Regards, Mariana. |
#4
| |||
| |||
|
|
No, it is not an error exactly, it's a wrong result set. I have an error while i only have selected columns. This is the formula, its works for less than five dimensions on rows, then get 100 as result. case when axis(1).Item(0).Count-1>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-1).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-1).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-1).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-1).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-1).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-1).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-2>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-2).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-2).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-2).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-2).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-2).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-2).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-3>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-3).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-3).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-3).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-3).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-3).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-3).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-4>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-4).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-4).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-4).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-4).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-4).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-4).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-5>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-5).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-5).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-5).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-5).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-5).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-5).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 else 100 end "Jeje" <willgart (AT) hotmail (DOT) com> wrote in message news:ubiYI0zuGHA.5084 (AT) TK2MSFTNGP04 (DOT) phx.gbl... what is the formula? do you receive the error when there is nothing in the rows axis? "Mariana" <melelen (AT) hotmail (DOT) com> wrote in message news:%23vaigryuGHA.1288 (AT) TK2MSFTNGP02 (DOT) phx.gbl... But working with those formula, i started to see selected dimensions over axis(0). Someone know if a patch exists for this problem. Regards, Mariana. |
#5
| |||
| |||
|
|
wow... big formula... I'm not about what you want to do, but first point, try to simplify your formula! what do you do with this??? strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-1).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-1).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-1).Dimension.Name + "].CurrentMember") do you want to get a particular dimension member from the row axis? try to not use string comparisons, but member comparison using the IS operator. axis(1).Item(0).Count-1>=0 is similar to axis(1).Item(0).Count>=1 so don't add a formula into the comparison (the -1; -2 etc...) finally... what is your expected result? and what your formula return? "Mariana" <melelen (AT) hotmail (DOT) com> wrote in message news:OZYILM0uGHA.1284 (AT) TK2MSFTNGP05 (DOT) phx.gbl... No, it is not an error exactly, it's a wrong result set. I have an error while i only have selected columns. This is the formula, its works for less than five dimensions on rows, then get 100 as result. case when axis(1).Item(0).Count-1>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-1).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-1).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-1).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-1).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-1).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-1).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-2>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-2).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-2).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-2).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-2).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-2).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-2).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-3>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-3).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-3).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-3).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-3).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-3).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-3).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-4>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-4).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-4).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-4).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-4).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-4).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-4).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-5>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-5).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-5).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-5).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-5).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-5).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-5).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 else 100 end "Jeje" <willgart (AT) hotmail (DOT) com> wrote in message news:ubiYI0zuGHA.5084 (AT) TK2MSFTNGP04 (DOT) phx.gbl... what is the formula? do you receive the error when there is nothing in the rows axis? "Mariana" <melelen (AT) hotmail (DOT) com> wrote in message news:%23vaigryuGHA.1288 (AT) TK2MSFTNGP02 (DOT) phx.gbl... But working with those formula, i started to see selected dimensions over axis(0). Someone know if a patch exists for this problem. Regards, Mariana. |
#6
| |||
| |||
|
|
wow... big formula... I'm not about what you want to do, but first point, try to simplify your formula! what do you do with this??? strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-1).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-1).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-1).Dimension.Name + "].CurrentMember") do you want to get a particular dimension member from the row axis? try to not use string comparisons, but member comparison using the IS operator. axis(1).Item(0).Count-1>=0 is similar to axis(1).Item(0).Count>=1 so don't add a formula into the comparison (the -1; -2 etc...) finally... what is your expected result? and what your formula return? "Mariana" <melelen (AT) hotmail (DOT) com> wrote in message news:OZYILM0uGHA.1284 (AT) TK2MSFTNGP05 (DOT) phx.gbl... No, it is not an error exactly, it's a wrong result set. I have an error while i only have selected columns. This is the formula, its works for less than five dimensions on rows, then get 100 as result. case when axis(1).Item(0).Count-1>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-1).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-1).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-1).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-1).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-1).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-1).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-2>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-2).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-2).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-2).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-2).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-2).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-2).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-3>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-3).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-3).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-3).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-3).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-3).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-3).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-4>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-4).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-4).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-4).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-4).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-4).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-4).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-5>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-5).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-5).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-5).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-5).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-5).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-5).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 else 100 end "Jeje" <willgart (AT) hotmail (DOT) com> wrote in message news:ubiYI0zuGHA.5084 (AT) TK2MSFTNGP04 (DOT) phx.gbl... what is the formula? do you receive the error when there is nothing in the rows axis? "Mariana" <melelen (AT) hotmail (DOT) com> wrote in message news:%23vaigryuGHA.1288 (AT) TK2MSFTNGP02 (DOT) phx.gbl... But working with those formula, i started to see selected dimensions over axis(0). Someone know if a patch exists for this problem. Regards, Mariana. |
#7
| |||
| |||
|
|
wow... big formula... I'm not about what you want to do, but first point, try to simplify your formula! what do you do with this??? strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-1).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-1).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-1).Dimension.Name + "].CurrentMember") do you want to get a particular dimension member from the row axis? try to not use string comparisons, but member comparison using the IS operator. axis(1).Item(0).Count-1>=0 is similar to axis(1).Item(0).Count>=1 so don't add a formula into the comparison (the -1; -2 etc...) finally... what is your expected result? and what your formula return? "Mariana" <melelen (AT) hotmail (DOT) com> wrote in message news:OZYILM0uGHA.1284 (AT) TK2MSFTNGP05 (DOT) phx.gbl... No, it is not an error exactly, it's a wrong result set. I have an error while i only have selected columns. This is the formula, its works for less than five dimensions on rows, then get 100 as result. case when axis(1).Item(0).Count-1>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-1).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-1).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-1).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-1).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-1).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-1).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-2>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-2).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-2).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-2).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-2).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-2).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-2).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-3>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-3).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-3).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-3).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-3).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-3).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-3).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-4>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-4).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-4).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-4).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-4).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-4).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-4).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 when axis(1).Item(0).Count-5>=0 and strtomember(left(axis(1).Item(0).Item(axis(1).Item (0).Count-5).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-5).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-5).Dimension.Name + "].CurrentMember").Name<>"Todos" then ([Medida].&[1])/sum(strtomember(left(axis(1).Item(0).Item(axis(1). Item(0).Count-5).uniquename,InStr(axis(1).Item(0).Item(axis(1).I tem(0).Count-5).uniquename,".")-1) + ".[" + axis(1).Item(0).Item(axis(1).Item(0).Count-5).Dimension.Name + "].CurrentMember").SIBLINGS,([Medida].&[1],valor))*100 else 100 end "Jeje" <willgart (AT) hotmail (DOT) com> wrote in message news:ubiYI0zuGHA.5084 (AT) TK2MSFTNGP04 (DOT) phx.gbl... what is the formula? do you receive the error when there is nothing in the rows axis? "Mariana" <melelen (AT) hotmail (DOT) com> wrote in message news:%23vaigryuGHA.1288 (AT) TK2MSFTNGP02 (DOT) phx.gbl... But working with those formula, i started to see selected dimensions over axis(0). Someone know if a patch exists for this problem. Regards, Mariana. |
![]() |
| Thread Tools | |
| Display Modes | |
| |