Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

adding a static dropdown value to a dynamic dropdown that is dependent on the 3 other dropdowns

(0) ShareShare
ReportReport
Posted on by 541 Super User 2025 Season 1

This is my code. Basically I have 3 more dropdowns that the choices for the office location is going to be based on the other 3 selected value but I want to add Any - no preferred location to my office location drop down.

this is the code that is not working. 

 

 

ClearCollect(
 OfficeLocationCollection,
 Distinct(
 Filter(
 'DataSource',
 ONE= DataCardValueONE.Selected.Value &&
 TWO= DataCardValueTWO.Selected.Value &&
 THREE= DataCardValueTHREE.Selected.Value
 ),
 'Office Location'
 )
);
Collect(
 OfficeLocationCollection,
 { OfficeLocationLabel: "Any - No preferred location" }
);

 

 

it looks like this for my new formula. Its blank

kej_0-1706671486267.png

 

 

 

  • KevinGador Profile Picture
    541 Super User 2025 Season 1 on at
    Re: adding a static dropdown value to a dynamic dropdown that is dependent on the 3 other dropdowns

    this has worked perfectly in a combobox. I initially was using a drop down that's why it did not work. Thanks @WarrenBelz 

  • WarrenBelz Profile Picture
    146,660 Most Valuable Professional on at
    Re: adding a static dropdown value to a dynamic dropdown that is dependent on the 3 other dropdowns

    @kej ,

    Yep - does not work in drop-down (I had never tried that before). I assume you are in Oz ?

  • KevinGador Profile Picture
    541 Super User 2025 Season 1 on at
    Re: adding a static dropdown value to a dynamic dropdown that is dependent on the 3 other dropdowns

    oh im using a dropdown on this one not a combobox. will try to use a combo box with the same formula

  • WarrenBelz Profile Picture
    146,660 Most Valuable Professional on at
    Re: adding a static dropdown value to a dynamic dropdown that is dependent on the 3 other dropdowns

    @kej ,

    This is not making a lot of sense to me presently as I use this structure regularly in prod apps. Assuming this is a classic Combo Box, are you displaying the Value field ?

  • KevinGador Profile Picture
    541 Super User 2025 Season 1 on at
    Re: adding a static dropdown value to a dynamic dropdown that is dependent on the 3 other dropdowns

    hello yes this is the current values of dropdown with that formula used

    kej_0-1706681804391.png

     

  • WarrenBelz Profile Picture
    146,660 Most Valuable Professional on at
    Re: adding a static dropdown value to a dynamic dropdown that is dependent on the 3 other dropdowns

    @kej ,

    It will work if your posted code is valid - does this return a list ?

    Distinct(
     Filter(
     'DataSource',
     One = DataCardValueOne.Selected.Value && 
     Two = DataCardValueTwo.Selected.Value && 
     Three = DataCardValueThree.Selected.Value
     ),
     'Office Location'
    )
  • KevinGador Profile Picture
    541 Super User 2025 Season 1 on at
    Re: adding a static dropdown value to a dynamic dropdown that is dependent on the 3 other dropdowns

    did not work as intended other values are appearing as blanks.

    kej_0-1706671821919.png

     

  • Verified answer
    WarrenBelz Profile Picture
    146,660 Most Valuable Professional on at
    Re: adding a static dropdown value to a dynamic dropdown that is dependent on the 3 other dropdowns

    Hi @kej ,

    You do not need the Collection - put this in the Items of your drop-down

    Ungroup(
     Table(
     {Data: Table({Value: "Any - No Preferred Location"})},
     {
     Data:
     Distinct(
     Filter(
     'DataSource',
     One = DataCardValueOne.Selected.Value && 
     Two = DataCardValueTwo.Selected.Value && 
     Three = DataCardValueThree.Selected.Value
     ),
     'Office Location'
     )
     }
     ),
     "Data"
    )

     

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard