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 / Cascading dropdown on ...
Power Apps
Answered

Cascading dropdown on a lookup column

(0) ShareShare
ReportReport
Posted on by 601

Hello,

 

I'm sure this has been posted before but I've not been able to follow any of the threads to get this to work. 

 

I have a SharePoint custom form that I've created in PowerApps. In it, I have 2 look up fields(combo boxes); State Lookup and Hotel Name New. These are looking up to a list called 'Master Property List'

 

Formula for Items on "State Look Up" is currently:

Sort(Distinct(Choices('HAFS US OTC Help Desk Ticket Log'.'State Lookup'),Value),Result)

 

I want to have the drop down for "Hotel Name New" function as a cascading drop down and only show values when the "State Lookup" selected value/result? is equal to "State" in the 'Master Property List'. I've tried a thousand different formula combinations for this and have had no success so far. Thank you so much for any help!

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

    Hi @CarlHRVA
    I am assuming your code below produces a valid result when providing a possible solution.
    Your first dropdown (I will call it StateLookup) has the Items property

    Sort(
     Distinct(
     Choices(
     'HAFS US OTC Help Desk Ticket Log'.'State Lookup'
     ),
     Value
     ),
     Result
    )

    I am wondering why a Choices field needs a Distinct filter, however the output of this should be<

    StateLookup.Selected.Result

    You now want to filter a further lookup when this output is equal to State in the list 'Master Property List'
    So the Items property of this gallery should be

    Filter(
     'Master Property List'
     State = StateLookup.Selected.Result
    )
    .State

     

    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.

  • CarlHRVA Profile Picture
    601 on at

    Thanks for responding @WarrenBelz . The state look up is distinct because there are multiple values for the state in the look up column and I only want to show one per state. Unfortunately, this formula didn't work for me. Also, in my first formula I'm referencing the look up column in the ticket log and in the second formula I'm referencing the Master Property List directly, is this correct? Here is the error I'm getting using the formula:

     

    Capture.PNG

     

     

  • WarrenBelz Profile Picture
    155,929 Most Valuable Professional on at

    Hi @CarlHRVA ,

    I just used StateLookup as I did not know the name of your ComboBox/DropDown control - just replace this with the actual name.

     

    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.

  • CarlHRVA Profile Picture
    601 on at

    @WarrenBelzit actually is the name of the look up column in the previous step it just has a space in it😂 The field was missing the space in the formula before but still getting the same error:

     


    Capture.PNG

     

     

     

  • WarrenBelz Profile Picture
    155,929 Most Valuable Professional on at

    Hi @CarlHRVA ,

    You need the name of the ComboBox control, not the field name.

  • CarlHRVA Profile Picture
    601 on at

    @WarrenBelzOh, I'm an idiot. It was DataCardValue20. The formula works now but the data it's returning should be Hotel Name. I made this small adjustment and it seems to work now! Thank you so much

     

    Capture.PNG

     

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard