web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter not working pro...
Power Apps
Suggested Answer

Filter not working properly

(0) ShareShare
ReportReport
Posted on by 20
I have a gallery filter combobox in powerapps which filters based on the status column Pending and Completed. Gallery filters by Pending and Completed status successfully. I have another filter option called "Both" which should show both Pending and Completed Requests. 
 
May i know how to achieve this?
 
Note: When the screen is loaded, by default it should filter by "Both"
 
Gallery Items Property
With(
    {
        _activerequests: Filter(
            Datasource,
            Len(ComboBox2.Selected.Value) = 0 || 'Status' = ComboBox2.Selected.Value
        )
    },
    SortByColumns(
        Filter(
            _activerequests,
            Len(TextInput1.Text) = 0 || TextInput1.Text in Requestor.Value || TextInput1.Text in Year.Value || TextInput1.Text in Manager.Value || TextInput1.Text in Title || TextInput1.Text in 'Created By'.DisplayName
        ),
        varsortcolumn,
        varsortdirection
    )
)
 
Categories:
I have the same question (0)
  • Suggested answer
    Kalathiya Profile Picture
    709 on at
    Hello @Poweruser32490
     
    I have just updated your formula that will work with all options: 
     
    Please try below your updated formula:
    With(
        {
            _activerequests: Filter(
                Datasource,
                Len(ComboBox2.Selected.Value) = 0 || ComboBox2.Selected.Value = "Both" || 'Status' = ComboBox2.Selected.Value
            )
        },
        SortByColumns(
            Filter(
                _activerequests,
                Len(TextInput1.Text) = 0 || TextInput1.Text in Requestor.Value || TextInput1.Text in Year.Value || TextInput1.Text in Manager.Value || TextInput1.Text in Title || TextInput1.Text in 'Created By'.DisplayName
            ),
            varsortcolumn,
            varsortdirection
        )
    )
    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping.
  • Kalathiya Profile Picture
    709 on at
     
    I wanted to follow up and see if this resolved the issue for you. I’m happy to help further if needed.

    📩 Need more help? Mention @Kalathiya anytime!
    ✔️ Don’t forget to Accept as Solution if this guidance worked for you.
    💛 Your Like motivates me to keep helping.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 421

#2
WarrenBelz Profile Picture

WarrenBelz 386 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 339 Super User 2025 Season 2

Last 30 days Overall leaderboard