on 10-03-2013 3:28 PM
Hi,
I am trying to exclude some personal areas for ex: 10 and 11 in the webi report. I wrote the below formula.
=If([Personnel Area].[Personnel Area - Key]<>"0010" Or [Personnel Area].[Personnel Area - Key]<>"0011";1;0) and it is not working. If I just do for one value =(If([Personnel Area].[Personnel Area - Key]<>"0042" ;1;0), it works. My datasource is bex query and we are 4.0. Please help me understand why this is not working for more than one value or how to make it work.
Thanks,
Charvi.
Hi Charvi,
Use =If(Not([Personnel Area].[Personnel Area - Key] InList("0010";"0011"));1;0)
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use "And" operator instead of "Or" operator. Your formula should work then.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Try with If ElseIf....
Sandeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The formula that mark mentioned should work for you!!
How ever your formula should work as well
=If([Personnel Area].[Personnel Area - Key]<>"0010" Or [Personnel Area].[Personnel Area - Key]<>"0011";1;0)
I was surprise why it did not work in the first place and tested with a very similiar formula which worked for me.
=If([Mge Profit Center Name]<>"AUT" Or [Mge Profit Center Name]<>"CSD" ;1;0)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
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.