
Hey there,
I got two Sharepoint Lists:
List 1: Employee Data with multiple columns (Relevant column: Assigned Parkingspace Nr.)
List 2: Parkingspaces
In my App i can change the parking space number of a employee (Currently it changes the Parkingspace Nr. of the selected employee in List1).
Problem: redundancy -> a parkingspace can be assigned to multiple employees.
--> Dropdown menu in the App.
"Property Default" = Assigned Parkingspace Nr. of the selected employee
"Property Item" = All exiting parkingspaces
I want a collection, which combines the parkingspace number from of the selected employee AND only the available parkingspaces from List2 (column-filter available = true).
If i change the property "items" to a formula that filteres values with available = true of List2 in the current dropdown, it doesn't show the "currently assigned parkingspace", because it's set to "unavailable" in List2.
Maybe someone can help me here. Thanks in advance 😉
This should tag all available spaces plus add the name of the selected user to their space.
Filter(
AddColumns(
ParkingSpaces,
"AllocatedTo",
Lookup(
'Employee Data,
'Assigned Parkingspace Nr' = 'Parkingspace Nr' &&
EmployeeName = YourSelectedName
)
),
Available || !IsBlank(AllocatedTo)
)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps