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 / PowerApps filter on co...
Power Apps
Answered

PowerApps filter on columns from Sharepoint

(0) ShareShare
ReportReport
Posted on by 2

Hello there,

 

I'm trying to apply a filter to a form in PowerApps, my list has only two columns, this is how the list looks like:

Names   Status

Test1      Active

Test2      Inactive

Test3      Active

Test4      Inactive

 

I want to show in the Name.Datacard and in a Combobox, the names which status is Active. I'm trying to apply this formula but it's not working: 

Filter(Choices([@TestList_1].Names), Value in Filter(TestLists_1, Status.Value = "Active").Names)

 

Both of my colums are set to be Choice, status can't add values manually, Names column allows to add values manually

 

Thanks in advance for your time and support!

 

 

 

 

Categories:
  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Sergidt 

    Check out @RezaDorrani 's video here:  https://www.youtube.com/watch?v=pn50AKn3Q1Y .  BTW, I don't use choice columns, just single line of text and I either hard code the controls or use a separate table as the input for dropdowns and comboboxes.

  • JeffC1 Profile Picture
    27 on at

    The items property of the ComboBox should be set to a datasource that is filtered for active.  e.g.:

    The data Source may be a table or a collection that has cached the table.  If the items of the ComboBox points to a collection, filter the table upon the creation of the collection:

     

     

    ClearCollect(
     colTableName,
     Filter(
     TableName,
     Status = "Active")
    )

     

    Then set the items property of the ComboBox to colTableName.

     

    If you're pointing the ComboBox items directly to a table then set items to:

     

     

    Filter(
     TableName,
     Status = "Active"
    )

     

     

  • JeffC1 Profile Picture
    27 on at

    I will also suggest next time that you consider using a Boolean field type for the status (if you only have active and inactive).  The field name could then be Active and the value a Boolean.  This will simplify the "coding" and run more efficiently from an analysis standpoint.

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 402 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard