Help with selection expression

I am trying to get the list of TYPEs from a TYPE_SLICE where
ARCHIVE<>TRUE, and based on the PI_NO of the USER, either TYPEs with a FAMILY_GROUP = JFP or FAMILY_GROUP=GEO AND both should have those with FAMILY_GROUP=ALL

This expression works for GEO and JFP individually:
AND([ARCHIVE]<>TRUE,
IF(LOOKUP(USEREMAIL(), โ€œUsersโ€, โ€œUSER_EMAILโ€, "PI_NOโ€)>3,
[FAMILY_GROUP]=โ€œJFPโ€,[FAMILY_GROUP]=โ€œGEOโ€))

But that does NOT include the records with ALL.

I tried several expressions but canโ€™t get it to work. What am I missing?

AND([ARCHIVE]<>TRUE,
IF(LOOKUP(USEREMAIL(), โ€œUsersโ€, โ€œUSER_EMAILโ€, "PI_NOโ€)>3,
SELECT(OR([FAMILY_GROUP]=โ€œJFPโ€,[FAMILY_GROUP]=โ€œALLโ€),
[FAMILY_GROUP]=โ€œGEOโ€,[FAMILY_GROUP]=โ€œALLโ€)))

Thanks.

Solved Solved
0 5 228
1 ACCEPTED SOLUTION

Yes and you could make it a little easier to read by re-arranging it like this:

AND([ARCHIVE]<>TRUE,
    OR(
       [FAMILY_GROUP]=โ€œALLโ€,
       IF(LOOKUP(USEREMAIL(), โ€œUsersโ€, โ€œUSER_EMAILโ€, "PI_NOโ€) > 3,
            [FAMILY_GROUP]=โ€œJFPโ€,
            [FAMILY_GROUP]=โ€œGEOโ€)
    )
)

View solution in original post

5 REPLIES 5
Top Labels in this Space