Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Filtering dropdown

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:
  • Verified answer
    GuttormG Profile Picture
    GuttormG 23 on at
    Re: Filtering dropdown

    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)

  • CNT Profile Picture
    CNT 10,926 on at
    Re: Filtering dropdown

    @GuttormG your formula will be,

    Sort(Filter(Ansatte,! (Navn in Concat(Filter(Trening, dateColumn=selectedDate, Navn), "," ) ),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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,487

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,014

Leaderboard