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

Cascading dropdowns

(0) ShareShare
ReportReport
Posted on by 166

I've worked with cascading dropdowns before but today I've encountered this error "this formula uses scope which is not presently supported for evaluation when i use dropdowns". Please check the screenshots attached aswell.

 

Any help is needed urgently and most appreciated , thanks!

e1.PNG
e2.PNG
Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I can imagine a couple of different issues, but without seeing the context its a bit tricky for me to address.

    First, make sure Location is actually a Value. It looks like it might be a Text Data type and you are comparing it to a value.

    After that, try making sure Cards is a Collection and try using Cards.Location. You can also try using Search rather than Filter

  • Gautham001 Profile Picture
    166 on at

    I tried using , Cards.Location , now it gives me a delegation warning.

    But I've used a SharePoint list which contains around 10 items , delegation makes no sense.

    All the fields used are choice fields in the SharePoint list.

     

    Also I'm using a form here , not a collection. Just to clarify.

     

    Thanks!

    e5.PNG
    e4.PNG
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Powerapps can still run with warnings, but I think you get a delegation warning because you are trying to call distinct on the return (filter) and it can't guarantee that it won't have a delegation issue. If you try to collect the result of the filter into a collection, then call distinct, I think it will remove your warning. Hope that helps

  • Gautham001 Profile Picture
    166 on at

    I need to update the selected values to the SharePoint list , any ways to do that? I'm using submit form  , but the form isn't complete yet.

     

    Also the my original problem isn't solved yet. The plant column doesn't get filtered based upon the choice made in location. 

     

    Should the plant column be a text field in the SharePoint list? (This would change the form right , might be a wrong suggestion)

     

    Sorry for too many questions , I'm still a beginner!

    The same scenario worked fine when I used a excel file as a data source , but I need this to work on a SharePoint list!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    If you have a dependent dropdown, this is how I handled it in my app:

    Your 'Plant Names' Items property is set to a collection, called ' PlantNames' or whatever. In the OnChange property of Location, you ClearCollect into the collection PlantNames your filtered list. After that, you reset the PlantNames field.

     

    Currently, if you change your Location, your Plant Name dropdown options won't update right away, and the user might be allowed to select a Plant Name that is not applicable for your Location. Trying to do your calculations in the Items property is going to cause warnings and issues for you. Its better to do your calculations in properties that are explicitly called, like OnSelect or OnChange.

  • Gautham001 Profile Picture
    166 on at

    So , I should make the calculations in the on select of Location? 

    How do I achieve this? , Using a variable?

  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Gautham001 ,

     

    I think there is something wrong with your code.  It should be like this:

    Filter(Choices(Cards.'Plant Name'),Value in Filter(AddColumns(Cards,"Column1",'Plant Name'.Value),Location.Value=DataCardValue11.Selected.Value).Column1)

    Test Result:

    Snipaste_2020-03-13_16-02-44.png

    Sik

     

  • Gautham001 Profile Picture
    166 on at

    Hey @v-siky-msft  , the code worked perfectly , but could you maybe explain it to me so i would'nt have to bother you later again? :D.

     

    Why is "Column 1" used. Also is it possible to get 'Plant Name' Field in a Text Box rather than a dropdown ? If so , how?.

     

    Thank you for the help @v-siky-msft and @Anonymous  for assisting.

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Gautham001 ,

     

    Since the 'Plant Name' is complex field which is not supported for evaluation, so I use AddColumns function to create a new column to save the Value of  'Plant Name' column.

    Why do you want a Text box? What does it mean? The Text box is not supported to select options if there are multiple options.

    If there is only one option and you want it shown in the Text box by default, please try this:

    Set Default property of Text box

     

    First(Filter(Choices(Cards.'Plant Name'),Value in Filter(AddColumns(Cards,"Column1",'Plant Name'.Value),Location.Value=DataCardValue11.Selected.Value).Column1)).Value

     

    Modify Update property of Datacard:

     

    LookUp(Choices('Test 0910'.Cho),Value = TextInput1.Text)

     

    Hope this helps.

    Sik

     

     

  • Powerplatform01 Profile Picture
    386 on at

    No worries, watch this video to resolve your issue

    https://youtu.be/Jq_qSZv98OI

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard