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 / multi filters gallery
Power Apps
Unanswered

multi filters gallery

(0) ShareShare
ReportReport
Posted on by 298

Hello, I need help. I have a list on SharePoint and I created a gallery with some data. I would like to filter this data using a checkbox and text input. When I press the checkbox, the gallery has to show me only the records that the "Aprovação da BPR" column is different from blank, that is, show only the records with data. I also need my text input(Pesquisar 5-Item) filter to work both times when the checkbox is checked or unchecked, filtering my "LOTE" column. Can someone help me please?

luisabsg_0-1643294352530.png

 

Categories:
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @luisabsg 

     

    Please try this

     

     

    With(ItemsDemo:Filter(SPList, !Checkbox.Value || !IsBlank('Apro da BPR'))},
     If(
     !IsBlank(TextBoxFilter.Text),
     Filter(
     ItemsDemo,
     StartsWith(
     ColumnName,
     TextBoxFilter.Text
     )
     ) //Filter
    ) //if
    ) //With

     

     

    Note: Please replace your Source, Control, and Column Name


    Thanks,
    Stalin - Learn To Illuminate

     

  • luisabsg Profile Picture
    298 on at

    Hey, tks for asswering.

    luisabsg_0-1643296178761.png

    "The With function has some invalid arguments"

    "The StarWith function has some invalid arguments"

    "The Filter function has some invalid arguments"

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at
    With({ItemsDemo:Filter(SPList, !Checkbox.Value || !IsBlank('Apro da BPR'))},
     If(
     !IsBlank(TextBoxFilter.Text),
     Filter(
     ItemsDemo,
     StartsWith(
     ColumnName,
     TextBoxFilter.Text
     )
     ) //Filter
    ) //if
    ) //With

     

    Sorry, I missed when typing With({

     

  • luisabsg Profile Picture
    298 on at

    It's ok, but the checkbox is not working. All records appear instead of only those with a date

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @luisabsg 

     

    This means no filter if the check box is not selected. And filter not blank (with data) when checked

    With({ItemsDemo:Filter(SPList, !Checkbox.Value || !IsBlank('Apro da BPR'))},

     

    Please share your code and the column name. I will verify it.

     

  • luisabsg Profile Picture
    298 on at

    The checkbox is checked but all the records appear, instead of only the records with a date in the "BPR Approval"

    luisabsg_0-1643301803653.png

     

    With({ItemsDemo:Filter('Liberação - Follow-up'; !Checkbox1_6.Value || !IsBlank('Aprovação da BPR - Formulação'))};
    If(
    !IsBlank(TextInput5_9.Text);
    Filter(
    ItemsDemo;
    StartsWith(
    'Lote Formulação/Filling';
    TextInput5_9.Text
    )
    );'Liberação - Follow-up' //Filter
    ) //if
    ) //With

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 382 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 329

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard