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 / 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 836 Moderator

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
    155,050 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
    836 Moderator on at

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

    kej_0-1706671821919.png

     

  • WarrenBelz Profile Picture
    155,050 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
    836 Moderator on at

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

    kej_0-1706681804391.png

     

  • WarrenBelz Profile Picture
    155,050 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
    836 Moderator 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
    155,050 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
    836 Moderator 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 490

#2
WarrenBelz Profile Picture

WarrenBelz 427 Most Valuable Professional

#3
Vish WR Profile Picture

Vish WR 381

Last 30 days Overall leaderboard