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 / Filter function column...
Power Apps
Answered

Filter function column name

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello community,

 

A problem need someone's help, in powerapps i have created a dropdown list to show different column names based on a collection.
I type the value manually   (The collection have part of same column names)

["All items","Selection one","Selection Two".......]


When i want to use the selected value from dropdown to a filter, it cannot be identify the boolean value.

Filter(collectionname,dropdown.Selected.Value = true)


In the collection,"Selection one" is  a boolean column.
If i use the column name in the collection, it works.
Untitled.png

Categories:
I have the same question (0)
  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    First glance you are filtering a collection and not filtering on a value from the collection. It should be filter(art collection, column = dropdown.selected.value )
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    doesn't work, right now what im using is manually input selection in the dropdown menu ex: lobby,corridors...

    Since i have 18 selections,i need to type this 18 times

    If(
    dropdownmenu.selected.value="Lobby",Filter(collectionname,Lobby = true),
    
    dropdownmenu.selected.value="Corridors",Filter(collectionname,Corridors = true),
    .
    .
    .
    .
    .
    
  • cwebb365 Profile Picture
    3,294 Most Valuable Professional on at
    So each item in your drop down is a column in the collection?
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    yes

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

    Hi @Anonymous ,

     

    What you want is not supported, since the column name/ table name can only be hardcoded in PowerApps.

    A cleaner better code, please try with Filter and Switch function as follows:

    Filter(collectionname, Switch(dropdownmenu.selected.value, "Lobby", Lobby = true,"Corridors", Corridors = true )

    See the Microsoft voices about your thought from here

    Hope this helps.

    Sik

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard