How to compare two information from 2 differentes table

Hello, I have a problem creating a slice to make a filtered view by user. To provide context, I have two tables.

Table 1: Users, on this table I have email addresses next to sector codes

Frdric_2-1737715071956.png

Table 2: 'Sites' I have site names next to sector codes

Frdric_1-1737714793973.png

I can't find a way to display the sites according to the user's email address. I've tried searching the forum but I haven't found my solution.

Thank you in advance, have a good day

Solved Solved
0 5 98
1 ACCEPTED SOLUTION

Try this instead:

IN(
  [codesect],
  SELECT(
    Table 1[codesect],
    (USEREMAIL() = [mail])
  )
)

View solution in original post

5 REPLIES 5

Look for information on Label and/or Dereference in the help document.

Steve
Platinum 5
Platinum 5

This?

([codesect] = LOOKUP(USEREMAIL(), "Table 1", "mail", "codesect"))

That's what I need, however, I have a problem with the result. The formula only displays one matching value.

Frdric_0-1737980333388.png

The problem is that I would like to display all the sites with their different sector codes, but the formula only shows me one matching value. Would it work better if I use the "Any" function?

Thank you for your help.

Try this instead:

IN(
  [codesect],
  SELECT(
    Table 1[codesect],
    (USEREMAIL() = [mail])
  )
)

Thank you so much i was searching for at least a day on this !๐Ÿ™

Top Labels in this Space