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 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,989 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

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 740 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 342 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard