Hi All,
I have 2 SharePoint list as shown below

I have added the Officer user 365 connector.
I added a gallery and also an icon within the gallery container and connected it to the table "Department"and i have added the following code to hide the icon if the logged in users email is not equal to the "Userdetail" table (Email).
If(LookUp(UserDetail,UnitID = ThisItem.ID).Email = User().Email,true,false)
It actually worked for just each user ID in the "Userdetail" list.
What i want is If aaa@abc.com or bbb@abc.com are logged in, the icon for Department A should be visible but instead it works for only aaa@abc.com .
Thanks.