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 / Text input filter for ...
Power Apps
Suggested Answer

Text input filter for multiple selections

(0) ShareShare
ReportReport
Posted on by 8
Hello,
I have a form in Sharepoint where one of the fields is a multiple selection form. So, I created the gallery filter as a text input so that I can enter any word and it should filter the corresponding field in the gallery.
However, when I create the filter below, it works for the other filters, but for this one with multiple selection, it doesn't work.
Can you help me?

Filter(
    'Banco de Dados Notificação CIEVS';
    (IsBlank(dpano.Selected.Value) || Year('Data da Notificação') = dpano.Selected.Value);
    (IsBlank(cbxsituacaoevento.Selected.Value) || 'Situação do evento'.Value = cbxsituacaoevento.Selected.Value);
    (IsBlank(txtdoencaagravo.Text) || 
        CountRows(
            Filter(
                Agravo_sob_suspeita.Value; // Isso acessa a tabela de valores de múltiplas seleções
                Lower(Text(Value)) in Lower(txtdoencaagravo.Text) // Compara com o texto digitado
            )
        ) > 0 // Se existir ao menos uma correspondência
    );
    (IsBlank(txtdescricao.Text) || 
        Lower(txtdescricao.Text) in Lower('Descrição sumária')
    )
)
Categories:
I have the same question (0)
  • ronaldwalcott Profile Picture
    3,847 Super User 2025 Season 2 on at
    Multiple selection fields return a table containing all of the selected values e.g.
    ComboBox1.SelectedItems
    You would have to filter on all the values in the table
  • SaiRT14 Profile Picture
    1,990 Super User 2025 Season 2 on at
    In Power Apps, filtering a multi-select field can be tricky because it's a table within a field. Here's how you can fix the logic:
     
    pls try the following:
    Filter(
        'Banco de Dados Notificação CIEVS',
        (IsBlank(dpano.Selected.Value) || Year('Data da Notificação') = dpano.Selected.Value),
        (IsBlank(cbxsituacaoevento.Selected.Value) || 'Situação do evento'.Value = cbxsituacaoevento.Selected.Value),
        (IsBlank(txtdoencaagravo.Text) || 
            !IsEmpty(
                Filter(
                    Agravo_sob_suspeita,
                    Lower(Text(Value)) in Lower(txtdoencaagravo.Text)
                )
            )
        ),
        (IsBlank(txtdescricao.Text) || 
            Lower(txtdescricao.Text) in Lower('Descrição sumária')
        )
    )
     
  • NP-04121619-0 Profile Picture
    8 on at
    @SaiRT14, Unfortunately it didn't work. It still doesn't filter.
  • Suggested answer
    Garima_PowerPlatform Profile Picture
    170 on at
    Hi 

    Please Try this

    Filter(
        'Banco de Dados Notificação CIEVS',
        
        // Year Filter
        IsBlank(dpano.Selected.Value) || Year('Data da Notificação') = dpano.Selected.Value,
        
        // Single-Choice Filter
        IsBlank(cbxsituacaoevento.Selected.Value) || 'Situação do evento'.Value = cbxsituacaoevento.Selected.Value,
        
        // Multi-Choice Filter
        IsBlank(txtdoencaagravo.Text) || 
        ForAll(
            Agravo_sob_suspeita.Value,
            Lower(Text(Value)) in Lower(txtdoencaagravo.Text)
        ),
        
        // Description Filter
        IsBlank(txtdescricao.Text) || Lower(txtdescricao.Text) in Lower('Descrição sumária')
    )
     

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
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard