Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

How to Filter out data in power apps using table/list

(0) ShareShare
ReportReport
Posted on by 12

Hi Team 

 

I have one table for eg:

City               Code       Sate

Mumbai        12           MAH

Bangalore     13            KK

Chandigah    14            PB

 

Now i have created two dropdowns one to choose City and another to choose Code after choosing the same i have placed one button (on clicking the same ) i should get State as result on some different label.

 

Please address here with query

 

  • kaushalsahi Profile Picture
    12 on at
    Re: How to Filter out data in power apps using table/list

    that's really helped me thanks ...As I am at beginner level ...thanks for supporting appreciated

  • Verified answer
    LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at
    Re: How to Filter out data in power apps using table/list

    I replicated your data in a collection:

     

    ClearCollect(
     ColCities,
     {
     City: "Mumbai",
     Code: 12,
     State: "MAH"
     },
     {
     City: "Bangalore",
     Code: 13,
     State: "KK"
     },
     {
     City: "Chandigah",
     Code: 14,
     State: "PB"
     }
    )

     

    CityDropdown.Items:

    Roverandom_0-1663002781635.png

     

    CodeDropdown.Items:

    Roverandom_1-1663002818251.png

    You don't need to filter like this, I just did it this way to return the correct city code.

     

    Button.OnSelect:

    Set(gblState, LookUp(ColCities, City = Dropdown1.Selected.City And Code = Dropdown1_1.Selected.Code, State)) // or UpdateContext

     

    Label.Text:

    Roverandom_2-1663002914538.png

     

    Final result:

    get state.gif

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399