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 / Components that perfor...
Power Apps
Unanswered

Components that perform filters in the gallery

(0) ShareShare
ReportReport
Posted on by 98

IMAGE 1

KaioOliveira_0-1711475895124.png 

IMAGE 2

KaioOliveira_1-1711476006427.png

 

Hello everyone, I'm here to share with you a big question that I'm facing. I have these components (they are in image 1) that create a filter in the gallery that is in image 2. The "COLLABORATOR" component that contains the name of the operation, it needs to be a mandatory field and navigation of the operation component should only be carried out when at least 1 of the other fields were activated. For example, the user entered the employee's name in the "COLLABORATOR" field and the initial and final data and thus had the filter performed in the gallery. I will insert the code for each filter component and the gallery code.

 

COD Contributor:

If(
Not(IsBlank(ComboBox3_6.Selected.Projeto)) ||
No(IsBlank(DatePicker2_4.SelectedDate)) ||
No(IsBlank(DatePicker2_5.SelectedDate)) ||
No(IsBlank(Toggle1_2.Value)),
If(
No(IsBlank(ComboBox3_8.Selected.'Full Name')),
To browse(
'Project Manager Vision - Home - Filter',
Screen transition.Fade,
{locSelecaoComboboxUser: ComboBox3_8.Selected}
)
)
)


Project Code: Navigate('Visão Gestor Projeto - Home - Filtro', ScreenTransition.Fade,{locSelecaoComboboxProjeto: ComboBox3_6.Selected})

Initial Date Code: Navigate('Visão Gestor Projeto - Home - Filtro', ScreenTransition.Fade,{locSelecaoComboboxDataInicial: DatePicker2_4.SelectedDate})

End Date Code: Navigate('Visão Gestor Projeto - Home - Filtro', ScreenTransition.Fade,{locSelecaoComboboxDataFinal: DatePicker2_5.SelectedDate})

Emergency Code: Navigate('Visão Gestor Projeto - Home - Filtro', ScreenTransition.Fade,{locSelecaoEmergencial: Toggle1_2.Value})

Gallery Filter:
Filter(
Requests,
CreatedBy.'Full Name' = locSelecaoComboboxUser.'Full Name' E
('Initial Data' >= ​​locSelecaoComboboxDataInicial Or IsBlank(DatePicker2_4.SelectedDate)) And
('Final Data' <=  locSelecaoComboboxDataFinal Or IsBlank(DatePicker2_5.SelectedDate)) And
(Emergency = locSelecaoEmergential Or IsBlank(Toggle1_2.Value)) And
(Projeto.Projeto = locSelecaoComboboxProjeto.Projeto Or IsBlank(ComboBox3_6.Selected))
)

Categories:

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 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard