cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Browse Gallery filtering not working with choise field

Hello guys,

 

I have a power app that works in the search bar adding an ID and that part is working properly. However, i want to show as default (When the search box is blank) my logs status.

 

This is the formula that i am using for the searchbox:
SortByColumns(Filter([@'Queries'], 'ID'=Value( TextSearchBox1.Text)),"Title", If(SortDescending1, Descending, Ascending))

My column of status is called Status and is a choice variable with 3 options Open Solved or Inconclusive.

 

Thanks for any help

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
mdevaney
Super User III
Super User III

@Anonymous 
To show everything when the searchbox is blank use this code in the Items property of your gallery.

SortByColumns(
    Filter(
        [@'Queries'],
        TextSearchBox1.Text=Blank() Or 'ID'=Value(TextSearchBox1.Text)
    ),
    "Title",
    If(SortDescending1, Descending, Ascending)
)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

1 REPLY 1
mdevaney
Super User III
Super User III

@Anonymous 
To show everything when the searchbox is blank use this code in the Items property of your gallery.

SortByColumns(
    Filter(
        [@'Queries'],
        TextSearchBox1.Text=Blank() Or 'ID'=Value(TextSearchBox1.Text)
    ),
    "Title",
    If(SortDescending1, Descending, Ascending)
)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,802)