Skip to main content

Notifications

Community site session details

Community site session details

Session Id : nURDh2ybYC0LCs7hEjVLEm
Power Apps - Building Power Apps
Answered

Creating a cascading dropdown option, from one table, using two choice columns

Like (0) ShareShare
ReportReport
Posted on 26 Dec 2021 16:46:18 by 72

Hi there,

 

Happy Holidays to you all!

 

I'm having difficulty creating a cascading dropdown from a single, custom Dataverse table. There are two columns wherein I want one to be dependant upon the other, both are "Choice" data-type columns. These drop-downs are currently displayed in a form, which when a new form is updated/submitted, it submits the data directly to the Dataverse table.

 

The first column, is titled Energy Group, and has three choices: Gas, Electricity & Water.

The second column, is titled Energy Type, and has ten choices: gas one, gas two, water one, water two, water three, water four, water five, electricity one, electricity two & electricity three.

 

Naturally, I only want the respective energy types showing, when the energy group has been selected.

 

So far, I've used Youtube tutorials, (which have been based on Sharepoint lists, although i know the premise is the same).

 

The first solution, is to create a formula on the energy-types dropdown datacard, using the right hand side "depends-on" toggle, and the generated solution created, is:

 

Filter('Jab Readings', 'Energy Types' = DataCardValue14.Selected.Value) - this creates two errors. One against the datacard, and one against the '=' value in the formula.

 

If I use DISTINCT, against the energy groups datacard, to filter the choices, the "Update" parameter errors out, and leaves the dropdown inert.

 

Thank you in advance if anybody could shine a light on this, as I'd be very grateful.

 

Sincerely

 

W

 

  • wilfordm81 Profile Picture
    72 on 28 Dec 2021 at 10:49:43
    Re: Creating a cascading dropdown option, from one table, using two choice columns

    Hi @v-JessicaG-msft,

     

    Happy holidays, and thanks for taking the time to work through this scenario!

     

    The first option worked a treat, however one alteration I made was to remove the "dependants" from the Choices element of the formula.

     

    Thanks again, and have a Happy New Year!

     

    W

  • Verified answer
    v-JessicaG-msft Profile Picture
    on 28 Dec 2021 at 10:23:40
    Re: Creating a cascading dropdown option, from one table, using two choice columns

    Hi @wilfordm81 ,

     

    According to your description, I thought of two solutions.

     

    1. If there is no cascading relationship between the Energy Group and Energy Type columns, you can use the "filter" and "startwith" functions in the dropdown to filter the Energy Group column values to the Energy Types column values. I have test for your reference, please try the following workaround:

     

    Formula:

     

    Filter(Choices(dependants.'Energy Type'),StartsWith(Value,DataCardValue1.Selected.Value))

     

    vJessicaGmsft_0-1640686820372.png

    vJessicaGmsft_1-1640686828202.png

     

    vJessicaGmsft_2-1640686841084.png

    2. If you want to create a cascade dropdown to present the data, you could create another table to relate the two columns of data.

    vJessicaGmsft_3-1640686896227.png

    The specific solution can be found at this link:

    https://www.matthewdevaney.com/create-cascading-dependent-dropdowns-in-power-apps/

     

     

    Best Regards,

    Jessica Gu

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,658 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard
Loading started
Loading complete