web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Answered

Filtering dropdown

(0) ShareShare
ReportReport
Posted on by 23

I have 2 sharepoint lists:
- Ansatte (Employees)
- Trening (Training)

 

In "Ansatte" I have a field "Navn" (Name) which is of the type peoplepicker.

In the "Trening" list, I have a dropdown that retrieves people from the "Ansatte" list. This field is saved as a text field with the value of DisplayName.
In addition, there is a date field that tells when the person has been in training.

 

Today I fill the dropdown list with names by using Sort(ForAll(Ansatte,Navn),DisplayName) which works just fine.
To simplify the filling, I want to show names in the dropdown list that are not already registered on the selected date in the "Trening" list.

The selected date is retrieved from DataCardValue2.SelectedDate

 

Can anyone help?

Categories:
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @GuttormG your formula will be,

    Sort(Filter(Ansatte,! (Navn in Concat(Filter(Trening, dateColumn=selectedDate, Navn), "," ) ),DisplayName)

  • Verified answer
    GuttormG Profile Picture
    23 on at

    Thanks! I could not make that work, but it pointed me in the right direction, and I ended up using

    Sort(Filter(ForAll(Ansatte,Navn),Not(DisplayName in (Filter(Trening,DataCardValue2.SelectedDate=Dato).'{Name}'))),DisplayName)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard