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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Two drop downs and cho...
Power Apps
Unanswered

Two drop downs and choice columns - formula error

(0) ShareShare
ReportReport
Posted on by 326

Hi there, 

 

I am building an app to filter people based on the skills they offer and the user's primary aim. I have two drop downs (named DropdownSTasks and DropdownSTasks) which are linked to a list and I want the gallery to display the relevant items based on the two drop down selections. The choice columns have multiple values in them (because the people have multiple skills) and this isn't something that I can change. 

 

At the moment, dropdown 1 has the following in the Items property:  Choices('MyList'.'PrimaryAim') and dropdown 2 has 

Choices('MyList'.'SpecificTask'). 
 
For the gallery, I have the following: 
Filter('My List', PrimaryAim = DropdownPAims.Selected && SpecificTask = DropdownSTasks.Selected)
 
However, DropdownPAims is green and DropdownSTasks is red in the formula bar. Can anyone help so that I can display the correct results? 
 
As a separate issue, I would like all people to display before a user selects an option from the dropdown. How would I achieve this?
 
Thank you!
 
Categories:
I have the same question (0)
  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    Hi @cb23 

    This will result in a record:

    DropdownPAims.Selected

    (same for the other dropdown)

     

    Your gallery Filter expression requires a single value, so if you put a dot after the reference for each drop down, it should give you something to select (usually it's value) e.g.

     

    Filter('My List', PrimaryAim = DropdownPAims.Selected.Value && SpecificTask = DropdownSTasks.Selected.Value)

     

    Note: I'm providing Value as an example, it could be something else like Aims or Tasks

     

  • v-mengmli-msft Profile Picture
    on at

    Hi @cb23 ,

     

    Do you mean that PrimaryAim and SpecificTask are multiple choices columns?

    If so, please try this.

    Filter('My List', DropdownPAims.Selected.Value in PrimaryAim.Value && DropdownSTasks.Selected.Value in SpecificTask.Value)

     

    Best regards,

    Rimmon

     

  • cb23 Profile Picture
    326 on at

    Hi @v-mengmli-msft

     

    Thank you that is working better now and is pulling the correct people across but there is still a delegation warning (below). Any ideas what to change for this?

     

     

     

    cb23_0-1711630863410.png

     

  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    Depending on size and complexity of your SP List, try this first (we can add a basic filter to the With statement if it still complains):

    With(
     {var_SpList: 'My List'},
     Filter(
     	var_SpList, 
    	And(
    		DropdownPAims.Selected.Value in PrimaryAim.Value,
    		DropdownSTasks.Selected.Value in SpecificTask.Value
    	)
     )
    )
  • cb23 Profile Picture
    326 on at

    Thank you! That seems to be working! 

     

    The only thing that isn't pulling through for me is the picture for the people selected. I have it set to 

    ThisItem.Person.Picture but it is just blank. Any ideas?
  • cb23 Profile Picture
    326 on at

    Also, if I wanted to display all people in the gallery when someone first comes to the app, what would I need to do? Put something in the Default property? Thanks again 🙂 

  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    Are you pulling from a Person column in your SP list?

  • cb23 Profile Picture
    326 on at

    Yes 

  • DJ_Jamba Profile Picture
    2,837 Super User 2025 Season 2 on at

    Sometimes Power Apps is a bit weird with images from SharePoint.
    If you save and close your app, then load your SharePoint site in one tab, then bring up the app in another tab, do the pictures display now?

  • v-mengmli-msft Profile Picture
    on at

    Hi @cb23 ,

     

    Everything works fine in my tests, the problem may be caused by a sync issue, it seems that only when the user accesses SharePoint, his photos are synced from Office365 to SharePoint.

     

    Best regards,

    Rimmon

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard