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 / Creating a cascading d...
Power Apps
Answered

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

(0) ShareShare
ReportReport
Posted on 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

 

Categories:
I have the same question (0)
  • Verified answer
    v-JessicaG-msft Profile Picture
    Microsoft Employee on at

    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

  • wilfordm81 Profile Picture
    72 on at

    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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 519 Most Valuable Professional

#2
11manish Profile Picture

11manish 489

#3
Haque Profile Picture

Haque 327

Last 30 days Overall leaderboard