on 04-22-2010 9:36 AM
Hello Experts,
I hope someone could help me. I am trying to create a MDX formula in Account dimension (Cuenta).
When formula created use "Iif" syntax, system give the following error:
- [CUENTA].[H1].[#X000] Parser: The following syntax error occurred during parsing: Invalid token, Line 1, Offset 15, [.
My Account dimension (Cuenta) has 3 parent, and the formula introduces is:
'Iif([Cuenta].[H1].[BLOQ_FASEC]<0.5 and [Cuenta].[H1].[BLOQ_FASEC]>-0.5,0,[Cuenta].[H1].[BLOQ_FASEC])
We try another syntax
'Iif([Cuenta].[BLOQ_FASEC]<0.5 and [Cuenta].[BLOQ_FASEC]>-0.5,0,[Cuenta].[BLOQ_FASEC])
But same error persist.
Could you have any idea?
Thanks
Can you check into dimension properties what is the size of FORMULA propertiy?
Make sure is bigger than number of chars from your formula.
Do you have multiple hierarchies for CUENTA?
The formula which you mentioned it has to be into column: FORMULAH1.
Also make sure that your formula doesn't have an end of line at the end. That can cause again problems.
Regards
Sorin Radulescu
Edited by: Sorin Radulescu on Apr 22, 2010 11:03 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much!!!!
You are right!! The problem was property length. Dimesion process great
Thank you again
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Thank you very much for you answer,
However X000 is the member where this formula we desire to define, so I think problem could be the syntax of this formula.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much Sorin:
I try to process again the dimension, but the following error appears intriducing the MDX formula you give me:
- [CUENTA].[H1].[#X000] Parser: The end of the input was reached.
Do you know what could be?
Thank you very much
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please modify the formula as:
Iif(((Cuenta.H1.BLOQ_FASEC<0.5) and (Cuenta.H1.BLOQ_FASEC>-0.5)),0,Cuenta.H1.BLOQ_FASEC)
I just added few brackets.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you need brackets for conditions.
Logc oerators like AND, OR have higher priority then other operators like >.
So the syntax has to be :
'Iif(((Cuenta.H1.BLOQ_FASEC<0.5) and (Cuenta.H1.BLOQ_FASEC>-0.5)),0,Cuenta.H1.BLOQ_FASEC)
Regards
Sorin Radulescu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.