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 / 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 463

#2
WarrenBelz Profile Picture

WarrenBelz 364 Most Valuable Professional

#3
11manish Profile Picture

11manish 275

Last 30 days Overall leaderboard