Cascading Dropdown in Power Apps [4 Various Examples]

In this Power Apps tutorial, I will explore how to create a cascading dropdown in Power Apps using different ways. Such as:

  • Manually create a cascading dropdown in Power Apps
  • Cascading dropdown in Power Apps from SharePoint list
  • Power Apps cascading dropdown lookup
  • Add a blank option to each cascading dropdown in Power Apps

Cascading Dropdown in Power Apps [Manually]

Power Apps cascading dropdown is mostly useful when you have data that is related hierarchically. To create a cascading dropdown in Power Apps manually, we will use the Power Apps collection.

For that, I have created a Collection named “colBooks,” which contains the fields below.

Column NameData Type
BookNameText field
AuthorText field
cascading dropdown powerapps

In Power Apps, there are two Dropdown controls [drp_BookName and drp_Author]. Whenever the user selects any book name in the first dropdown, the second dropdown will filter and display the respective author name based on the first dropdown selected value.

Output:

Manually create a cascading dropdown in Power Apps

To do so, follow the below steps. Such as:

1. Open your Power Apps app -> Select the App object from the left navigation and set its OnStart property to the code below.

OnStart = ClearCollect(
    colBooks,
    {
        BookName: "To Kill a Mockingbird",
        Author: "Harper Lee"
    },
    {
        BookName: "The Great Gatsby",
        Author: "F. Scott Fitzgerald"
    },
    {
        BookName: "Pride and Prejudice",
        Author: "Jane Austen"
    },
    {
        BookName: "The Catcher in the Rye",
        Author: " J.D. Salinger"
    },
    {
        BookName: "The Hobbit",
        Author: "J.R.R. Tolkien"
    }
)

Where,

  • colBooks = Power Apps collection name
  • BookName, Author = Collection fields
cascading dropdown in powerapps

2. On the Power Apps Screen -> Insert a Dropdown control and set its Items and Value properties, as shown below.

Items = colBooks

Value = BookName
powerapps cascading dropdown

3. Then, insert another Dropdown control and set its Items and Value properties.

Items = Filter(
    colBooks,
    BookName = drp_BookNames.Selected.BookName
)

Value = Author

Where,

  • drp_BookNames = Power Apps 1st dropdown control name
cascading dropdown in power apps

4. Once your app is ready, Save, Publish, and Preview the app. Once you select any book name in the first dropdown, the second dropdown will filter and display the respective author name based on the first dropdown selected value.

This way, you can work with the cascading dropdown in Power Apps manually.

cascade dropdown in powerapps

Cascading dropdown in Power Apps from SharePoint list

Next, I will show you how to create cascading dropdowns in Power Apps from the SharePoint Online list with a simple scenario.

Scenario:

I have a SharePoint Online list [Travel Requests] and this list contains the below fields.

Column NameData Type
Trip TitleIt is a default single line of text
DestinationLocation
AirlineChoice
Requested ByPerson or Group
cascading dropdown in powerapps from sharepoint list

In Power Apps, there are four Dropdown controls [drp_TripTile, drp_Destination, drp_StartDate, and drp_Airline]. When the user selects the trip tile from the first dropdown, the remaining dropdowns filter and display all the trip details based on the selected trip name.

Output:

cascading dropdown in powerapps from sharepoint list

To achieve it, follow the below steps.

1. On the Power Apps Screen -> Insert a Dropdown control and set its Items property as:

Items = 'Travel Requests'.Title

Where,

  • ‘Travel Requests’ = SharePoint Online list
  • Title = SharePoint list text field

2. Next, insert another dropdown control and set its Items and Value property to the code below.

Items = Filter('Travel Requests',Title=drp_TripTitle.Selected.Title)

Value = Destination: Name

Where,

  • drp_TripTitle = Power Apps 1st dropdown control name
cascading dropdown in power apps from sharepoint list

3. Similarly, insert another dropdown control and set its Items and Value property to the code below.

Items = Filter('Travel Requests',Title=drp_TripTitle.Selected.Title)

Value = Travel Start Date
powerapps cascading dropdown sharepoint list

4. However, when I use the filter condition on the SharePoint list choice field, it does not receive the value, as shown below.

power apps cascading dropdown sharepoint list

5. To fix this issue, I used the LookUp function instead of the Filter function using the code below.

Items = LookUp('Travel Requests',Title=drp_TripTitle.Selected.Title).Airline
power app cascading dropdown

6. Now, preview the app. Whenever the user selects the trip tile from the first dropdown, the remaining dropdowns filter and display selected trip details.

cascading in powerapps

This is how we can work with cascading dropdowns in Power Apps from the SharePoint Online list.

Power Apps Cascading Dropdown Lookup

To create a cascading dropdown lookup, I have created two simple SharePoint Online lists. Such as:

  • Employee Country [Source List]
  • Employee State [Destination List]

The Employee Country list has only one Title column, and I just renamed it “Country,” as shown below.

PowerApps cascading dropdown lookup

The Employee State list has two columns:

  • State = It is a default single line of text
  • Country = it is a lookup column [I have added from the Employee Country list]
powerapps app cascading dropdown

In Power Apps, there are two dropdown controls [drp_Country and drp_State]. Whenever the user selects the country value in the first dropdown, the second dropdown filters and displays the selected country state records.

Output:

Power Apps cascading dropdown lookup

To work around this, follow the below-mentioned steps. Such as:

1. On the Power Apps Screen -> Insert a Dropdown control and set its Items property to the code below.

Items = 'Employee Country'.Title

Where,

  • ‘Employee Country’ = SharePoint source list
cascading dropdown powerapps sharepoint list

2. Then, insert another Dropdown control and set its Items and Value property to the code.

Items = Filter(
    'Employee State',
    Country.Value = drp_Country.Selected.Title
)

Value = Title

Where,

  • drp_Country = Power Apps 1st dropdown name
powerapps dropdown from sharepoint list

3. Save, Publish, and Preview the app. When the user selects the country value in the first dropdown, the second dropdown filters and displays the selected country state records, as shown below.

This way, you can work with the Power Apps cascading dropdown lookup.

power apps dependent dropdown

Add a blank option to each cascading dropdown in Power Apps

Suppose you want to add a blank value to the Power Apps cascading dropdown to make a better user experience [Whenever the user opens or runs the app, the cascading dropdown’s selected value is blank].

Also, when the user selects any value from the dropdown, the remaining dropdowns will filter and display respective records based on the dropdown selected value.

Have a look at the below output.

Add a blank option to each cascading dropdown in Power Apps

1. On the Power Apps Screen -> Select the Country Dropdown and set its Items property to the code below.

Items = Ungroup(
     Table(
         {Value: Blank()},
         {Value: 'Employee Country'.Title}
     ),
     "Value"
 )
Add a blank option to each cascading dropdown in PowerApps

2. Likewise, select State dropdown and set its Items property as:

Items = Ungroup(
    Table(
        {Value: Blank()},
        {
            Value: Distinct(
                Filter(
                    'Employee State',
                    Country.Value = drp_Country.Selected.Title
                ),
                Title
            )
        }
    ),
    "Value"
)
Add blank option to each cascading dropdown in Power Apps

3. Save, publish, and Preview the app. Whenver the user selects any country value from the first dropdown, the second dropdown will filter and display state records based on the selected dropdown country value.

Add blank option to each cascading dropdown in PowerApps

This is how we can add a blank option to each cascading dropdown in PowerApps.

Some more articles you may also like:

I trust you find this tutorial useful. Here, we learned how to create a cascading dropdown in Power Apps manually and how to work with the cascading dropdown in Power Apps from the SharePoint list.

Additionally, we also covered the Power Apps cascading dropdown lookup and how to add a blank option to each cascading dropdown in Power Apps.

  • >