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 / Filter list item with ...
Power Apps
Answered

Filter list item with a checkbox

(0) ShareShare
ReportReport
Posted on by 4

Hi,


I'm new in powerApps, and sorry for my poor english.

I have a SharePoint list "Congés", with a multiple choice column "Type of leave" which can be :
RTT/ Paid leave/etc.

Capture d’écran 2022-12-28 132022.jpg

I would like to filter this list, in powerApps, by leave type, with an RTT checkbox that only displays RTT type leaves if it is checked.

Capture d’écran 2022-12-28 132210.jpg

On my checkbox, on the "Oncheck" property, I put : 
Filter('Congés';'Type de congés'.Value="RTT")
But it doesn't work.

Someone can explain me why ?
Thank you !

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @David410

    In the items property of your gallery

    Filter('Congés'; !Checkbox1. Value || 'Type de congés'.Value="RTT")

     

  • David410 Profile Picture
    4 on at

    @Drrickryp 
    Thank you.
    But is it possible to use the "Oncheck" property of my checkBox to manage my list items or, for example, change the color of a component ?

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @David410

    Do you want to change the color of a control based on the OnCheck property of the Checkbox?

     

    Set the Color property of your component as below:

    If(Checkbox1.Value,Red,Green)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @David410

    Do you see the pattern? The target controls reference the checkbox. The checkbox doesn't initiate the action. 

  • David410 Profile Picture
    4 on at

    @Drrickryp 
    1/Ok, but in this case, how do we use the checkBox properties "onCheck" / "onUnCheck" / "onSelect" etc. ?

     2/On my gallery I have this formula to sort my items :
    SortByColumns(Filter([@Congés]; StartsWith(Title; TextSearchBox1.Text)); "Created"; If(SortDescending1; Descending; Ascending))
    How can I add this condition :
    Filter('Congés'; !Checkbox1. Value || 'Type de congés'.Value="RTT") ?

    Thank you !

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @David410

    WIth({_cong: Filter('Congés'; !Checkbox1. Value || 'Type de congés'.Value="RTT")}, 

    SortByColumns(Filter(_cong; StartsWith(Title; TextSearchBox1.Text)); "Created"; If(SortDescending1; Descending; Ascending))

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 429 Most Valuable Professional

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard