Restrict data slice to user's team

Hi - 1st time post and getting going here

I have 2 tables, a listings table and a user table. The link between the 2 tables is TeamName and I would like to create a slice of data where the rows from the listings table will show only those where there is a match to the team of the current logged in user.
Appreciate your help.

Solved Solved
0 5 219
1 ACCEPTED SOLUTION

5 REPLIES 5

To clarify; So where there is a match on the email address from the users table = the same as the username() virtual field in the top table.

Your slice condition would be:

[team name] =
LOOKUP( USEREMAIL() , โ€œUsersโ€ , โ€œUseremailโ€ , โ€œTeam Nameโ€ )

Thereโ€™s no need for the LoggedInUser virtual column that you have.


Fantastic, worked a charm. Thank you @Marc_Dillon

@Marc_Dillon Is it possible to do the same lookup where the email is included in a multi-option column?

In the screenshot, Iโ€™d like to be able to return rows 19 & 20 if the logged in user was useremail1@test.com

Top Labels in this Space