The problem seems to be with the IN([TEAM line. It does NOT find the matches it should.
[TEAM_NO] from the record is always a single value.
TEAM_NO from the USERS table can have one or more values
What am I missing?
AND(
[SCOPE_NO]=10,[START_DATE]<=Today(),[END_DATE]+7>=Today(),ISNOTBLANK([TEAM_NO]),[ANSWERED]=โKeep Prayingโ,
IN([TEAM_NO], LOOKUP(USEREMAIL(), Users, USER_EMAIL, TEAM_NO))
)
The list below SEEMS to be what I want.
ALL these statements are true:
โฆ1: (The value of column โSCOPE_NOโ) is equal to (10)
โฆ2: (The value of column โSTART_DATEโ) is less than or equal to (TODAY())
โฆ3: ((The value of column โEND_DATEโ + 7) is greater than or equal to (TODAY())
โฆ4: This statement is false:
โฆ(The value of column โTEAM_NOโ) is empty
โฆ5: (The value of column โANSWEREDโ) is equal to (โKeep Prayingโ)
โฆ6: (The value of column โTEAM_NOโ) is one of the values in the list (One randomly chosen value from this list (
โฆThe list of values of column โTEAM_NOโ
โฆfrom rows of table โUsersโ
โฆwhere this condition is true: ((The value of column โUSER_EMAILโ) is equal to (USEREMAIL()))))
Solved! Go to Solution.
Try replacing the existing IN() subexpression with either of the following:
ISNOTBLANK(
FILTER(
"Users",
AND(
([USER_EMAIL] = USEREMAIL()),
IN([_THISROW].[TEAM_NO], [TEAM_NO])
)
)
)
or:
IN(
[TEAM_NO],
SPLIT(
LOOKUP(
USEREMAIL(),
"Users",
"USER_EMAIL",
"TEAM_NO"
),
" , "
)
)
The problem is that LOOKUP() always produces a singular value. If the value itโs asked to provide is a list, it converts the list to a single Text value that then needs to be converted back into a list to be used as a list.
Try replacing the existing IN() subexpression with either of the following:
ISNOTBLANK(
FILTER(
"Users",
AND(
([USER_EMAIL] = USEREMAIL()),
IN([_THISROW].[TEAM_NO], [TEAM_NO])
)
)
)
or:
IN(
[TEAM_NO],
SPLIT(
LOOKUP(
USEREMAIL(),
"Users",
"USER_EMAIL",
"TEAM_NO"
),
" , "
)
)
The problem is that LOOKUP() always produces a singular value. If the value itโs asked to provide is a list, it converts the list to a single Text value that then needs to be converted back into a list to be used as a list.
Steve,
THANKS!! It works like I need it to.
Appreciate the help and the speed.
User | Count |
---|---|
43 | |
28 | |
24 | |
24 | |
13 |