Hey guys!
Ok so I am trying to put together an expression that says these employees on this crew can view a view on the app. I want people both on the admin crew and the maintenance crew to be able to view it.
I have a spreadsheet called Employees. The key is the employee name, but then the other columns are [Useremail], [Crew], etc.
I have other functions on the app that utilize the Employee Name as a ref so I need to keep that as the key. Canโt change the key to Useremail.
So what expression do I use? FILTER? SELECT? Nothing seems to be working. Is it a row ref? Idk. Iโm thinking something like this, but I know itโs not quite thereโฆ
OR((Useremail() = [Useremail].([Crew]= โMaintenanceโ), (Useremail() = [Useremail].([Crew]= โAdminโ)
What are your thoughts? Remember, Useremail is not the key in the spreadsheet. I feel like I should use a de-ref somewhere but maybe thatโs not quite right.
Solved! Go to Solution.
Try this as the viewโs Show if expression:
ISNOTBLANK(
FILTER(
"Employees",
AND(
(USEREMAIL() = [Useremail]),
IN([Crew], {"Admin", "Maintenance"})
)
)
)
User | Count |
---|---|
17 | |
11 | |
7 | |
5 | |
5 |