Hi All
I’m struggling to get an EnumList which is filtered.
I have a table
Dept a@b.com Production b@b.com Production c@b.com Production d@b.com Warehouse e@b.com Warehouse
How do i construct the ValidIf statement to get Production department members to only see members of Production and not Warehouse? (and vice versa!)
I’m looking at SELECT([Email],[Dept]=“the same department as USEREMAIL()”)
All help appreciated! Thanks Gordon
Try with… SELECT(YourTableName[Email],[Dept]=LOOKUP(USEREMAIL(),TableName,Email,Dept))
Thanks!
I guess you will use it on a slice or a security filter, if so then use this [dept] = LOOKUP(USERMAIL(), yourtable, email, dept)
@Fernando_Lopez He wanted to have filtered Enumlist.
Ohhhh, OK
Thanks everyone - I’ve implemented Aleksi’s suggestion successfully. This gives my colleagues the option to select their own department members in an EnumList, but not any other departments. Perfect
User | Count |
---|---|
41 | |
31 | |
31 | |
16 | |
14 |