web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Creating cascading Dro...
Power Apps
Answered

Creating cascading Dropdowns using a static table and NOT a sharepoint list?

(0) ShareShare
ReportReport
Posted on by 23

Hello All,

 

I have a situation I can't seem to get working right. I have an edit form that is pulling from a static excel table (table1) that I imported. I used this important rather than a sharepoint list because it contains more than 2,000 records and encountered issues with delegation when pulling options for the combobox dropdown. So now that I have a static list, delegation issues have been resovled, however, now I cannot figure out how to get a second combobox dependent on values in the first.

 

So in combobox1 I have the following formula

 

Items = Distinct(SortByColumns(Filter([@Table1], StartsWith(Part_Num, TextSearchBox1.Text)), "Part_Num"), Part_Num)

 

This give users a choice of part numbers to select.

 

Combobox2 allows users to choose a mold number. However, I only want molds listed that actually create the parts from Combobox1. So for example if a user selects Part Number 100000, and only 2/1200 molds run part number 100000 only those two mold number should appear as choices.

 

Currently my formula for combobox2 is as follows:

 

Items = Distinct(SortByColumns(Filter([@Table1], StartsWith(Mold_Num, TextSearchBox1.Text)), "Mold_Num"), Mold_Num)

 

For a sharepoint list I could simply append , Result = ComboBox1.Selected.Result) to this formula to get the correct filter. However, this does not seem to work on static lists. Is there a way I can modify the formula to still get my results filtered correctly?

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

    Hi @AcesOverPacific ,

     If ComboBox1 Items is this

    Distinct(
     SortByColumns(
     Filter(
     [@Table1], 
     StartsWith(
     Part_Num, 
     TextSearchBox1.Text
     )
     ),
     "Part_Num"
     ), 
     Part_Num
    )

    Try this on the second one Items - you also need to specify the column in the table you are filtering.

    Distinct(
     SortByColumns(
     Filter(
     [@Table1], 
     StartsWith(
     Mold_Num, 
     TextSearchBox1.Text
     ) &&
     Part_Num=ComboBox1.Selected.Result
     ), 
     "Mold_Num"
     ), 
     Mold_Num
    )

     

    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.

     

  • AcesOverPacific Profile Picture
    23 on at

    While the formula you suggest is accepted by program, it still does not filter results, instead it still lists all results without any filtering based on the first combobox result.

  • AcesOverPacific Profile Picture
    23 on at

    Okay, nevermind after playing with the formula I did get it to work by pointing to the correct column. 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard