Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Dropdown lists update, when either is selected

(1) ShareShare
ReportReport
Posted on by 71
Hi Experts,
 
I have two dropdown lists and would like them to update, when you select one of them just like in excel if you were using a filter.
 
For example if you selected Test 1 = 1, then the only available option in Test 2 would be 1
And vice versa, if you selected Test 2 = 1, then the only available option in Test 1 would be 1.
 
So you can select both ways and they update each other.
 
Test 1 Test 2
1 1
2 2
3 3
4 4
5 5
 
 
I've seen many articles, where you can cascade so if I select Test 1, then Test 2 updates... but not working both ways if you selected Test 2 first, then Test 1 updates?
 
Any advice, would be greatly appreciated thank you
  • Steggsy17 Profile Picture
    71 on at
    Dropdown lists update, when either is selected
    Thanks @ WarrenBelz, variables example below, certainly helped with the logic for this.
     
    Many thanks
     
    It won't let me select your actual logic reply as the, "Does this answer your question?"
     
    Cheers
  • Verified answer
    WarrenBelz Profile Picture
    146,660 Most Valuable Professional on at
    Dropdown lists update, when either is selected
    Just following up to see if you received the answer you needed, or if you require further assistance.

    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • WarrenBelz Profile Picture
    146,660 Most Valuable Professional on at
    Dropdown lists update, when either is selected
    Hi Steggsy17 
    You can do it using Variables - put this at Screen OnVisible or anywhere else you need to reset it.
    UpdateContext(
        {
            var1: Blank(),
            var2: Blank()
        }
    )
    then OnChange of each - example for first
    UpdateContext({var1: Self.Selected.Value})
    then the Items (the reverse will apply for the second drop-down)
    If(
        IsBlank(var2),
        ["1","2","3","4","5"],
        [var2]
    )
     
    Please click Does this answer your question 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 a Like.
    MVP (Business Applications)     Visit my blog Practical Power Apps    Buy me a coffee
  • Suggested answer
    Nandit Profile Picture
    1,563 Super User 2025 Season 1 on at
    Dropdown lists update, when either is selected
    Hi  Steggsy17,
     
    This would create a circular reference which is not allowed in Power Apps.
    Even if you tried to display DefaultSelectedItems both ways, it will still result in a Circular Reference.
     
    I would suggest descoping this requirement if its just a good to have functionality.
     
    Hope this helps. 
     
    Kind regards, 
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!

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