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 / Another multiple filte...
Power Apps
Answered

Another multiple filtering question

(0) ShareShare
ReportReport
Posted on by 38

Just looking at some other examples on this forum but struggling to get this statement right;

 

I have a toggle for a "Contractor" column being either "Yes" or "No" depending on a toggle on the page, can I somehow fit that into the Filter statement?

 

SortByColumns(
 Filter(
 VisitorSignInList,
 Lastname = SiteCode
 ),
 "SignInDate",
 If(
 SortDescending1,
 Ascending,
 Descending
 ),
 "SignInTime"
)
Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi Andrew,

    Is your data from Sharepoint?  Is your expression the Items property of a gallery or datatable?

  • andrew260z Profile Picture
    38 on at

    Yes that is right its a SharePoint list, data is presented in a gallery at the moment.

  • Verified answer
    Mike8 Profile Picture
    1,330 on at

    Hello andew260z,

    Does this work for you?

    SortByColumns(
     Filter(
     VisitorSignInList,
     Lastname = SiteCode&&Contractor=Toggle1.Value
     ),
     "SignInDate",
     If(
     SortDescending1,
     Ascending,
     Descending
     ),
     "SignInTime"
    ) 

    In order to try it, you need to replace Toggle1 with the actual name of your toggle control

  • andrew260z Profile Picture
    38 on at

    Sorry for the delayed response - yes works, I didn't realise that was possible to do the compound conditions for a filter. Thanks!

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