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 / How to Filter out data...
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

 

Categories:
I have the same question (0)
  • Verified answer
    LuizVicente Profile Picture
    984 Super User 2024 Season 1 on at

    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

  • kaushalsahi Profile Picture
    12 on at

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

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard