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 wit...
Power Apps
Answered

Cascading Dropdown with multiple choice columns

(0) ShareShare
ReportReport
Posted on by 16

Hi there,

 

I'm creating an app where I want to cascade two dropdown lists, where the data sources are lists with multiple choice columns. I have a table with different products that support different languages for different countries. So, in a list called Products List, I created multiple choice columns Countries and Languages

 

guibe80_0-1641319245569.png

 

In the front end in Power Apps, I need to automatically filter the second dropdown with the languages supported by that country.

guibe80_2-1641319695050.png

 

I managed to fill in the first dropdown with the following code.

 

GroupBy(SortByColumns(Ungroup('Products List',"Countries"),"Value",Ascending),"Value","Country")

 

 

But when trying I can't fill the second dropdown, I cannot fill the languages available for this country. I'm using the following code, but it's pulling the whole list of languages and not the ones related to the country.

 

Ungroup(Filter('Product List', ddwn_Country.Selected.Value in Countries.Value).Language, "Language")

 

 

How could I filter the second dropdown?

 

Thanks in advance, this is my first app in Power Apps and still on a step learning curve.

 

Thanks;

 

guibe80

 

 

 

Categories:
I have the same question (0)
  • Abhilash_Swain Profile Picture
    901 on at

    Hi @guibe80 ,
    For Drop down1 try this :- Sort(Distinct(Products List,Country),Ascending)

    For Dropdown2 you can add:- Sort(Filter(Products List, Country = Dropdown1.Selected.result),Ascending)

  • guibe80 Profile Picture
    16 on at

    Thanks for the reply, unfortunately. Ito doesn't work. When running the first query, it's giving me a table as a result and the dropdown cannot parse. This is the result of that expression. This is a multiple choice column. 

     

    guibe80_0-1641320579477.png

     

  • Abhilash_Swain Profile Picture
    901 on at

    I tried the same with a Combobox . Please add this to the Items of Combo box as shown below.

    Abhilash_Swain_0-1641366188287.png

     

    In my 2nd Drop Down I use it like this

    Abhilash_Swain_1-1641367665486.png

     

    Here in My Combobox, I choose multiple Manager,s and in my next drop down Relevant Employee ID will be auto filterd.

    Please note:- In operator will have a delegation issue if your data exceed 2000.

     

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @guibe80,

    I think you should change your formula that you set for the first Dropdown Items property.

    Since you have set Countries column as a Choice column allowing multi select, you could populate the Dropdown with the Choice() function directly.

    Here is my solution, please take a try as below.

    Set the first Dropdown Items as below:

    Choices('Products List'.Countries)

    Set the second Dropdown Items as below:

    Distinct(Ungroup(Filter('Product List', ddwn_Country.Selected.Value in Countries.Value).Language,"Language"),Value)

     

  • Verified answer
    ymirza Profile Picture
    14 on at

    Is the Value at the end connected with Language.Value? I get an error when doing only Value

     

    Distinct(Ungroup(Filter('Product List', ddwn_Country.Selected.Value in Countries.Value).Language,"Language"),Language.Value)

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi, I'm making a form with two dependent dropdowns: Plant or BU depends on the selection you make in Category (both Category and Plant or BU are of type Choice). My problem is in the second dropdown (ddPlant) referring to Plant or BU. I have used the following formula:
    Distinct(Ungroup(Filter(Category_PlantBU, ddCategory.Selected.Value in Category.Value).PlantBU, "PlantBU"),PlantBU.Value)

     

    cum2rt_1-1676881033027.png

     

    but I get a warning. Also, I have written in Update the following, but it doesn't work:
    ddPlant.Selected.Result

    Should I change the Default section also?

    cum2rt_0-1676880989135.png

     

    Can someone tell me the errors I'm getting?

    Thank you very much! 😁

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    If it is a Choice column, you should modify the formula as below:

    {Value:ddPlant.Selected.Result}
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It doesn't work 😢

    cum2rt_0-1676882703828.png

    Thank you in advance

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    How can I solve the warning about the formula below?

    cum2rt_1-1676882921050.png

     

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

    Could you please provide more details like the specific error message?

    Also, I don't know what is your warning, is it the red line marked?

     

    Suggest you open a new case for your problem.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard