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 with "in" opera...
Power Apps
Answered

Filter with "in" operator and And condition returns

(2) ShareShare
ReportReport
Posted on by 243
 
Hi all,
 
I'm trying to count rows from ListA where RequestedBy matches a set of TeamLeads pulled from ListB (filtered by a dropdown selection), combined with a status check.
CountRows(Filter(ListA, ColumnX in (Filter(ListB, TeamLead = Dropdown1.Selected.TeamLead).TeamLead) And Status.Value = "Pending Approval"))
This returns 0/blank. Tried splitting into nested Filters and checking Selected.Result vs Selected.TeamLead, still no luck.
 
What's the right pattern for combining in with other conditions on a SharePoint source, and are there delegation issues here I should watch for?
 
Thanks!
Categories:
I have the same question (0)
  • Verified answer
    Vish WR Profile Picture
    3,748 on at
     

    You could try
    CountRows(Filter(Filter(ListA, Status.Value = "Pending Approval"), ColumnX in (Filter(ListB, TeamLead = Dropdown1.Selected.TeamLead).TeamLead)))

    There's a similar thread on this simliar  issue combining Filter with in and And against a SharePoint source. The fix that worked there was splitting it into two nested Filter calls instead of one combined condition:

    https://community.powerplatform.com/forums/thread/details/?threadid=f9c969fa-762d-42d4-8db1-2e6fa41e7989

    Worth checking the dropdown field reference too (Selected.Result vs Selected.TeamLead) since that tripped people up in that thread as well.

      Vishnu WR
     
    Please âœ… Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥
     
     
  • Thomas.m1988 Profile Picture
    243 on at
    Thanks for the quick response 
  • Vish WR Profile Picture
    3,748 on at
    welcome , glad it worked 

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 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard