Nested IIf issue

heathb

Registered User.
Local time
Today, 15:21
Joined
Mar 23, 2017
Messages
15
Ladies and gents,

having an issue with the nested IIf only returning on one leg.

Data: IIf([Contract Size Table]![Location]<>"EUROPE","NO",IIf([Entities]![European Entity]="NO","NO","YES"))

Output example attached

The above works fine when set individually. I have checked around and obviously it is going to be a simple fix, but I cannot see it..:mad:

As usual, all help greatly rec'd
 

Attachments

  • nested iif.PNG
    nested iif.PNG
    9.9 KB · Views: 169
solved, not sure why though:confused::confused::confused:

Data: IIf([Contract Size Table]![Location]="EUROPE","YES",IIf([Entities]![European Entity]="NO","NO","YES"))
 
My guess is that some of those values that look like "EUROPE" are not actually "EUROPE" values. To wit:

"EUROPE " <> "EUROPE"

"EUROPE " used in the first code would return "NO"
"EUROPE " used in the second one woudl return "YES"


Of course if you have any "NO " values, the second code will return "YES".
 
My thought, but checked that with another IIf and that works fine

EU venue: IIf([Contract Size Table]![Location]="EUROPE","Y","N")

thanks anyway
 

Users who are viewing this thread

Back
Top Bottom