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 / adding a static dropdo...
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 822 Super User 2025 Season 2

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

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    153,051 Most Valuable Professional on at

    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

  • KevinGador Profile Picture
    822 Super User 2025 Season 2 on at

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

    kej_0-1706671821919.png

     

  • WarrenBelz Profile Picture
    153,051 Most Valuable Professional on at

    @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
    822 Super User 2025 Season 2 on at

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

    kej_0-1706681804391.png

     

  • WarrenBelz Profile Picture
    153,051 Most Valuable Professional on at

    @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
    822 Super User 2025 Season 2 on at

    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
    153,051 Most Valuable Professional on at

    @kej ,

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

  • KevinGador Profile Picture
    822 Super User 2025 Season 2 on at

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

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard