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 Platform Community / Forums / Power Apps / How to have 3 search o...
Power Apps
Answered

How to have 3 search options dependent on if statements?

(0) ShareShare
ReportReport
Posted on by 255

ChannelDevMike_0-1666883193844.png

What I am trying to do:
If I have EDP info for one item. When I type into EDP input, CAT number and Description limit their dropdowns to select the same product.

 

If I have Cat number, EDP and Description limit their dropdowns to select the same product.

If I have Description, EDP and Cat number limit their dropdowns to select the same product.

How error occurred:

ChannelDevMike_1-1666883646302.png

I first did the Cat combo box logic, which worked perfectly. But then I tired to do the same thing for EDP and I got that error

Box Logic:
For CAT combo box logic : If(Not(IsBlank(EDP.Selected.'EDP Number')),Filter('Products (custom)', 'Catalog Number' = EDP.Selected.'Catalog Number'),If(Not(IsBlank(DES.Selected.Description)),Filter('Products (custom)', 'Catalog Number' = DES.Selected.'Catalog Number'),'Products (custom)'))  <-- this works perfectly 

For EDP combo box logic : If(Not(IsBlank(CAT.Selected.'Catalog Number')),Filter('Products (custom)', 'EDP Number' = CAT.Selected.'EDP Number'),'Products (custom)') 

If I need a different route:
Client wants to have dropdowns of their products that can be searched by EDP, Cat number or Description. Once any one of the three options is filled, the other ones either need to limit their dropdown or can autofill the other dropdowns. 

Additional info:
After I solve this, Vendor will need to do the same thing, but it is from the Vendor table and not the Product table. So vendor input will have to limit the products as well. I don't know what the best route overall is here
 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @ChannelDevMike ,

     

    I'm assuming the code you posted is for the DefaultSelectedItems property. Indeed the both can't be dependent on each other because that causes a loop.

     

    What you can do is to use a variable which is updated every time the user selects a different value in one of the Combo Boxes by leveraging the OnChange property of the combo boxes. The DefaultSelectedItems properties can then refer to the variable.

  • ChannelDevMike Profile Picture
    255 on at

    Can you show an example? Having trouble getting it to work

  • Verified answer
    BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @ChannelDevMike ,

     

    Assuming all three comboboxes have the same data source, you can set their OnChange property to:

     

    UpdateContext({varSelectedItem: Self.Selected})

     

    This will save the selected item in a variable.

     

    By setting the DefaultSelectedItems property of the comboboxes to to the below, at any change of the variable, the latest selected item by the user will be the selected item in all comboboxes:

     

    varSelectedItem

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard