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 Apps
Answered

Distinct Choices

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a form that will have 3 dropdown fields and have the same values in each of them.  The ask is that the fields cannot have the same value as the other 2 fields.  So, if a user chooses 7:00 am - 8:00 am start, the other two fields will need to display either 8:30am - 9:30 am and 10:00am - 10:30am start. How can I accomplish that?

 

Choice 1

7:00am - 8:00am start

8:30am-9:30am start

10:00am-10:30am start

 

Choice 2

7:00am - 8:00am start

8:30am-9:30am start

10:00am-10:30am start

 

Choice 3

7:00am - 8:00am start

8:30am-9:30am start

10:00am-10:30am start

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @Anonymous 

    Filter the list based on the choice <> the first dropdown.  In the example, I used listboxes to show the choices.  The result would be the same for dropdown controls. 

    _1.png

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Drrickryp , can you provide an example please?

  • Verified answer
    Aaron3Sixty5 Profile Picture
    47 on at

    If you want to cascade the results top down, you can add the following code to 3 dropdown controls Items property:

     

    Dropdown1

    ["7:00am - 8:00am start", "8:30am-9:30am start", "10:00am-10:30am start"]

     

    Dropdown2

    If(
     IsBlank(Dropdown1.SelectedText.Value),
     ["7:00am - 8:00am start","8:30am-9:30am start","10:00am-10:30am start"],
     Dropdown1.SelectedText.Value="7:00am - 8:00am start",
     ["8:30am-9:30am start","10:00am-10:30am start"],
     Dropdown1.SelectedText.Value="8:30am-9:30am start",
     ["7:00am - 8:00am start","10:00am-10:30am start"],
     Dropdown1.SelectedText.Value="10:00am-10:30am start",
     ["7:00am - 8:00am start","8:30am-9:30am start"]
    )

     

    Dropdown3

    If(
     //Check for non-selections
     IsBlank(Dropdown1.SelectedText.Value) && IsBlank(Dropdown2.SelectedText.Value),
     ["7:00am - 8:00am start","8:30am-9:30am start","10:00am-10:30am start"],
     Dropdown1.SelectedText.Value="7:00am - 8:00am start" && IsBlank(Dropdown2.SelectedText.Value),
     ["8:30am-9:30am start","10:00am-10:30am start"],
     Dropdown1.SelectedText.Value="8:30am-9:30am start" && IsBlank(Dropdown2.SelectedText.Value),
     ["7:00am - 8:00am start","10:00am-10:30am start"],
     Dropdown1.SelectedText.Value="10:00am-10:30am start" && IsBlank(Dropdown2.SelectedText.Value),
     ["7:00am - 8:00am start","8:30am-9:30am start"],
    
     //Results for 10:00am start
     (Dropdown1.SelectedText.Value="7:00am - 8:00am start" && Dropdown2.SelectedText.Value="8:30am-9:30am start") || (Dropdown2.SelectedText.Value="7:00am - 8:00am start" && Dropdown1.SelectedText.Value="8:30am-9:30am start"),
     ["10:00am-10:30am start"],
     //Results for 8:30am start
     (Dropdown1.SelectedText.Value="7:00am - 8:00am start" && Dropdown2.SelectedText.Value="10:00am-10:30am start") || (Dropdown2.SelectedText.Value="7:00am - 8:00am start" && Dropdown1.SelectedText.Value="10:00am-10:30am start"),
     ["8:30am-9:30am start"],
     //Results for 7:00am start 
     (Dropdown1.SelectedText.Value="8:30am-9:30am start" && Dropdown2.SelectedText.Value="10:00am-10:30am start") || (Dropdown2.SelectedText.Value="8:30am-9:30am start" && Dropdown1.SelectedText.Value="10:00am-10:30am start"),
     ["7:00am - 8:00am start"]
    
    )

     

    dd-example.JPG

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Aaron3Sixty5  this worked like a charm!  thank you!

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard