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

Filtering Combobox

(0) ShareShare
ReportReport
Posted on by 789

Hello Everyone,

 

I would like use a Combox in PowerApps where Categories option are available to choose and based on what Category I choose from the combobox and that will filter which text will be availabl e to choose on the second combobox. 

 

Example:

Combobox1 - I choose Category 2 and in the second combobox the only options that are available is Text6, Text7 and Text8. 

 

image (4).png

 

I hope someone can help me.

 

@Amik 

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Caleb62881177 ,

     

    Assuming it is your table and column are text type except Source column (choice column), please try this.

    Items of combo box1.

    Choices([@TableName].Source)

    Items of combo box2

    Switch(ComboBox1.Selected.Value,"Category1",TableName.Category1,"Category2",TableName.Category2,"Category3",TableName.Category3,"Category4",TableName.Category4)

     

     

    Best regards,

    Rimmon

  • J_wickes Profile Picture
    2 on at

    I've not tried this exact method myself but with a little tweaking the below should do the trick

     

    1. Set up your data source: Ensure your data is structured in a way that the second ComboBox can filter its options based on the first ComboBox’s selection. For example, if you have a table with categories and corresponding texts, it should be set up like this:

    Table

     

    Source (Choice) Category1 Category2 Category3 Category4

    Category1 Text1 Text6 Text9 Text10

    Category2 Text2 Text7 Text11 Text11

    Category3 Text3 Text8 Text12 Text12

    Category4 Text4 - - -

    Text5   

    2. Configure ComboBox1: Set the Items property of ComboBox1 to the list of categories.

    3. Configure ComboBox2: Set the Items property of ComboBox2 to filter the options based on the selection in ComboBox1. You can use the Filter function to achieve this. Here’s an example formula you could use:

    Filter(YourDataSource, 'Source (Choice)' = ComboBox1.Selected.Result)

     

    This formula will filter the data source to only show the rows where the ‘Source (Choice)’ column matches the selection in ComboBox1. Then, you can use the appropriate column for ComboBox2’s options.

  • Caleb62881177 Profile Picture
    789 on at

    Sorry for responding now.

     

    The Catergory columns are also choice columns.

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

    Hi @Caleb62881177 ,

     

    There isn't much of a difference, you just need to make some modifications to the Switch formula.

    Items of combo box.

    Switch(ComboBox1.Selected.Value,"Category1",Choices([@TableName].Category1),"Category2",Choices([@TableName].Category2),"Category3",Choices([@TableName].Category3),"Category4",Choices([@TableName].Category4))

     

     

    Best regards,

    Rimmon

  • Caleb62881177 Profile Picture
    789 on at

    @v-mengmli-msft - I am getting an error when using that formula

    1000073088.jpg

  • Caleb62881177 Profile Picture
    789 on at

    @v-mengmli-msft - I figured out how to use Switch for my situation.

     

    Switch(DataCardValue.Selected.Value, "Category1", Choices([@SPList].Category1), "Category2", Choices([@SPList].Category2),

    "Category3", Choices([@SPList].Category3))

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard