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 / Issues with cascading ...
Power Apps
Answered

Issues with cascading combo box

(0) ShareShare
ReportReport
Posted on by 32

Hello guys, I am encountering an issue with the combo box on the app that I am currently developing using Share point as Data source.

 

Scenario: I have 2 combo boxes which the combo box 1 is showing the results from Column A correctly. Now with my combobox2, the results should be dependent based from the selected result in combobox1 and this is not happening.

 

Below is my code in Items Property for combobox2:

 

Sort(Filter(Distinct('SP Name', ThisItem.'Ticket Number' = DataCardValue24.Selected.Result),Not(IsBlank(Result))),Result)

 

Hawold_0-1642602490932.png

 

However, if I use the following code below in my combobox2, it will return the results that I am expecting BUT it will not filter according to the selected value in combobox2:

 

Sort(Filter(Distinct('SP Name','Test ID'),Not(IsBlank(Result))),Result)

 

Hawold_1-1642602529488.png

 

Please advise.

Thank you so much!

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Ha-wold 

    You second formula you presented is not basing itself on combobox 1 at all.  That needs to be added in.

    So, based on your first formula, the formula would be:

    Sort(
     Filter(
     Distinct(
     Filter('SP Name'
     'Ticket Number' = DataCardValue24.Selected.Result
     ),
     'Test ID'
     ),
     !IsBlank(Result)
     ),
     Result
    )

     

    As a general note, this formula is yet another trip to the datasource.  Cascading combo and dropdown controls is best done with the GroupBy function, but I am not seeing the Items property of your first combobox to be able to offer a suggestion for that.

     

    I hope this is helpful for you.

  • Ha-wold Profile Picture
    32 on at

    Hi @RandyHayes 

    Thank you so much for your response. I actually tried the formula that you provided but it is still not showing the correct data based from the selection in combo box 1.

    Hawold_0-1642649256226.png

     

    From my Sharepoint:

    Hawold_1-1642649291531.png

     

    As for your question, below is the code in the combo box 1 property: 

    Sort(Filter(Distinct('SP Name','Ticket Number'),Not(IsBlank(Result))),Result)

     

    Please advise. Thank you!

  • Verified answer
    Ha-wold Profile Picture
    32 on at

    This can be close. Updated my combo box2 formula to: 

    Filter(Distinct(Filter('SP Name', 'Combo Box 1 ColumnName' = ComboBox2.Selected.Result),'ComboBox Two ColumnName'),Result)

     

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard