on 09-28-2011 5:21 PM
Hi,
I have written the IIF statment on the measure(key figure) generated from SAPBW and below is the syntax used under the select clause. The error message is the "XML syntax is correct, but the MDX expression is not parsed" and webI report responded with error. Can someone assist on the syntax.
<Expression>
IIF([Measures].[4N3096KVHMMF62NVRT220HNAU] < "-1",1,
IIF([Measures].[4N3096KVHMMF62NVRT220HNAU] > "1",2,
IIF([Measures].[4N3096KVHMMF62NVRT220HNAU] >= "-1",3,
IIF([Measures].[4N3096KVHMMF62NVRT220HNAU] < "-0.5",3,4))))
</Expression>
Thanks,
Regards,
Vysh
Hi,
Check this.
<Expression>
IIF(Measures.4N3096KVHMMF62NVRT220HNAU < ,1,
IIF(Measures.4N3096KVHMMF62NVRT220HNAU > 1,2,
IIF(Measures.4N3096KVHMMF62NVRT220HNAU >= -1,3,
IIF(Measures.4N3096KVHMMF62NVRT220HNAU < ,3,4))))
</Expression>
For numbers there is no need to add Double quotations " " in a condition.
Cheers,
Suresh Aluri.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh,
I have made the changes to the syntax both ways like you advised and still the error message is showing up in universe.
<Expression>
IIF(Measures.4N3096KVHMMF62NVRT220HNAU <-1,1,
IIF(Measures.4N3096KVHMMF62NVRT220HNAU > 1,2))
</Expression>
<Expression>
IIF([Measures].[4N3096KVHMMF62NVRT220HNAU] <,-1,1,
IIF([Measures].[4N3096KVHMMF62NVRT220HNAU] >, 1,2,
IIF([Measures].[4N3096KVHMMF62NVRT220HNAU] >, -1,3,
IIF([Measures].[4N3096KVHMMF62NVRT220HNAU] <, -0.5,3,4))))
</Expression>
Thanks,
Vysh
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.