I'm creating a visitor register app, the data source is a SP list.
I'm capturing the office with a person column, the display field is "office"
On the app I have an admin page, where I need to filter the visitors gallery based on the office of the admin that is logged in.
The idea is that the admin can mass "Check Out" visitor for their own office.
When I select the office field in powerapps, there is no option to select office, it shows display name, email, claims , department and image but there is no office.
I've tried adding the O65 connector and I managed to get the office location of the logged in user, but have not been able to come up with the filter gallery sintax.
This is the filter expression I have working so far, I need to add the office portion. I've tried like hundred different expressions and I don't get the expected results
If(Dropdown2.Selected.Value = "All",Filter(VisitorRegister, Created>=Today()-2),
Dropdown2.Selected.Value = "Open",Filter(VisitorRegister, Created>=Today()-2 && IsBlank(CheckOut)),
Dropdown2.Selected.Value = "Closed",Filter(VisitorRegister, Created>=Today()-2 && !IsBlank(CheckOut)))
I would appreciate if some one can help me.
Thank you