![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, We have a requirement where the logic for a calculated member differs with whether a particular dimension (Dim-A) is selected as a Row / Column Dimension or selected as a filter. I could not find out a way to identify whether a Dim-A is selected as Row/Column dimension or as a filter in the MDX Expression. I know there is an MDX function called “Axis” where Axis0 – is column & Axis1 is Row. But I could not figure out the exact syntax. Please help. Prasad. |
#3
| |||
| |||
|
|
As you will see in the online book Axis function return a set Convert this sert in a String with SetToStr function, then use InStr VB function for asking if THE dimension is in this axis. Example: InStr(1,"[MyDimension].", SetToStr(Axis(0)) ) if this expresion > 1 then columns are your axis. And so on with the other axis. "Prasad" wrote: Hi, We have a requirement where the logic for a calculated member differs with whether a particular dimension (Dim-A) is selected as a Row / Column Dimension or selected as a filter. I could not find out a way to identify whether a Dim-A is selected as Row/Column dimension or as a filter in the MDX Expression. I know there is an MDX function called “Axis” where Axis0 – is column & Axis1 is Row. But I could not figure out the exact syntax. Please help. Prasad. |
#4
| |||
| |||
|
|
How do i use the VB function "InStr" in the Calculated Member Builder in MSAS? Thx "MartinDS" wrote: As you will see in the online book Axis function return a set Convert this sert in a String with SetToStr function, then use InStr VB function for asking if THE dimension is in this axis. Example: InStr(1,"[MyDimension].", SetToStr(Axis(0)) ) if this expresion > 1 then columns are your axis. And so on with the other axis. "Prasad" wrote: Hi, We have a requirement where the logic for a calculated member differs with whether a particular dimension (Dim-A) is selected as a Row / Column Dimension or selected as a filter. I could not find out a way to identify whether a Dim-A is selected as Row/Column dimension or as a filter in the MDX Expression. I know there is an MDX function called “Axis” where Axis0 – is column & Axis1 is Row. But I could not figure out the exact syntax. Please help. Prasad. |
#5
| |||
| |||
|
|
As you will see in the online book Axis function return a set Convert this sert in a String with SetToStr function, then use InStr VB function for asking if THE dimension is in this axis. Example: InStr(1,"[MyDimension].", SetToStr(Axis(0)) ) if this expresion > 1 then columns are your axis. And so on with the other axis. "Prasad" wrote: Hi, We have a requirement where the logic for a calculated member differs with whether a particular dimension (Dim-A) is selected as a Row / Column Dimension or selected as a filter. I could not find out a way to identify whether a Dim-A is selected as Row/Column dimension or as a filter in the MDX Expression. I know there is an MDX function called “Axis” where Axis0 – is column & Axis1 is Row. But I could not figure out the exact syntax. Please help. Prasad. |
![]() |
| Thread Tools | |
| Display Modes | |
| |