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 Apps
Answered

Filter function

(0) ShareShare
ReportReport
Posted on by 133

Hi, guys! I'm stuck in logic here... So I have partners who are responsible for 1 or more departmenst.In my report I want to have all the departments information that "x" partner manages. So if I manage 3 department i want all the 3 departments info.  If I manage 1 department, I want this 1 department info from the sharepoint list. Partners and their departments info is stored in "Partner" sharepoint list. I filtered my sharepoint database "fulldata" like this: Filter(fulldata, department=First(Filter(Partners,Lower(User().Email)=Lower(Title))).department || department=First(Filter(Partners,Lower(User().Email)=Lower(Title))).department1 || department=First(Filter(Partners,Lower(User().Email)=Lower(Title))).department3) but it's not filtering. It filters only according to 1st logical test... Have you any suggestins how to modify this code so it takes all the data that are matched to these criteria?

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @KotaroKo 

    Like this...

    Filter(fulldata,
     First(Filter(Partners,Lower(User().Email)=Lower(Title))).department in department
     || First(Filter(Partners,Lower(User().Email)=Lower(Title))).department1 in department
     || First(Filter(Partners,Lower(User().Email)=Lower(Title))).department3 in department
    )

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 528

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard