cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
elevate-me
Helper I
Helper I

Filter in Powerapps Gallery

Hello everyone! I could really use your help. There are three filters associated with my gallery; however, only two (program and status) of the three are working. The drop downs are associated with my Sharepoint list but for some odd reason the gallery will not sort by team. Any ideas? Thanks a bunch! 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User
Super User

@elevate-me 

"Sort by Team"???  Your formula has no sorting in it.  Do you mean that it will not filter by team?  If so, then you are missing that criteria in your formula.

 

Please consider changing your Formula to the following:

Search(
    Filter('Pre-Obligation Reviews',
        (varObligationSelect = 1 &&
         (IsBlank(ComboBoxProgram.Selected.Value) || Program in ComboBoxProgram.SelectedItems.Value) &&
         (IsBlank(ComboBoxStatus_1.Selected.Value) || PeObStatus in ComboBoxStatus_1.SelectedItems.Value) &&
         (IsBlank(ComboBoxTeam_1.Selected.Value) || Team in ComboBoxTeam_1.SelectedItems.Value)
        ) ||
        (!(varObligationSelect=1) &&
          (StartsWith('Created By'.Email, User().Email) || StartsWith('Team Leader''s Email'.Email, User().Email))
        )
    ),
    SearchboxFAO.Text,
    "Applicant_x0020_Name", "Title"
)
   

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!

View solution in original post

2 REPLIES 2
RandyHayes
Super User
Super User

@elevate-me 

"Sort by Team"???  Your formula has no sorting in it.  Do you mean that it will not filter by team?  If so, then you are missing that criteria in your formula.

 

Please consider changing your Formula to the following:

Search(
    Filter('Pre-Obligation Reviews',
        (varObligationSelect = 1 &&
         (IsBlank(ComboBoxProgram.Selected.Value) || Program in ComboBoxProgram.SelectedItems.Value) &&
         (IsBlank(ComboBoxStatus_1.Selected.Value) || PeObStatus in ComboBoxStatus_1.SelectedItems.Value) &&
         (IsBlank(ComboBoxTeam_1.Selected.Value) || Team in ComboBoxTeam_1.SelectedItems.Value)
        ) ||
        (!(varObligationSelect=1) &&
          (StartsWith('Created By'.Email, User().Email) || StartsWith('Team Leader''s Email'.Email, User().Email))
        )
    ),
    SearchboxFAO.Text,
    "Applicant_x0020_Name", "Title"
)
   

 

I hope this is helpful for you.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
NOTE: My normal response times will be Mon to Fri from 1 PM to 10 PM UTC (and lots of other times too!)
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

Really want to show your appreciation? Buy Me A Cup Of Coffee!
elevate-me
Helper I
Helper I

@RandyHayes thank you for the help. I did mean filter. Something new I learned. In the formula, remove the ".value" at the end of "selecteditems" and it works. Thank you so much!

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,330)