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 / Filtro do Combobox com...
Power Apps
Unanswered

Filtro do Combobox com erro

(0) ShareShare
ReportReport
Posted on by 8

Oi

Fiz um filtro dentro da combobox, onde tento realizar um "filtro duplo"

Filtro de propriedade
de itens (
Distinto(
DIM_PROCEDURES,Ascendente

),
IsBlank (Self.SearchText) ||
StartsWith (COLUMN1, Self.SearchText) ||
StartsWith (COLUMN2, Self.SearchText)


)

Quando aplico este filtro na Propriedade de Itens, vou até a propriedade SearchFields e coloco as colunas que quero filtrar
["COLUNA1"; "COLUMN2"]

Este código é 100% correto, não retorna um erro, mas quando eu filtro, ele só reconhece minha primeira condição SearchFields que é
"COLUMN1", a outra coluna não retorna.


Vi que os campos são nomeados de forma diferente no PowerApps Canvas. Mudei o idioma para inglês e o erro ainda persiste.

Abaixo estão as visualizações dos campos com erros.
 

Captura de tela 2022-05-19 134956.png
Captura de tela 2022-05-19 134953.png
Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Rsouza1 

    When you use Distinct(datasource, fieldname)  Powerapps will produce a single column table with the column name Result.  It would be illogical to use Distinct() in the Items property of a combobox control and expect there to be a search on two columns. 

  • Rsouza1 Profile Picture
    8 on at

    Hello how are you! Thanks for the feedback! Well even using Distinct it recognizes only one column search. This new method I saw on a blog. I'll leave the link for consultation! Thanks also for the observation. It was supposed to be Lucky lol. Follow the readjusted code! Grateful!

    Rsouza1_2-1653050105850.pngRsouza1_3-1653050108688.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard