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 / Multiple filters / onl...
Power Apps
Unanswered

Multiple filters / only show tasks by the assigned user

(0) ShareShare
ReportReport
Posted on by 131

Hi

I hope someone can help

I have created an app to update a SP task list. However, I would like the gallery to only show open actions for the logged on user.

 

The formula I am using is -  Filter(Tasks,Completed= "0"&&'Assigned To'= User().FullName)

Where "Completed" = 0 when the task isnt completed

 

The formula works until I add the Assigned to section. Is there something I have done wrong?

 

Thanks for your help in advance

 

Matt 

 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

     

    Try:

    Filter(Tasks,Completed= "0"&&'Assigned To'.Value= User().FullName)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Venxir Profile Picture
    125 on at

    Assigned To column is probably of the type "People" in SharePoint. This means that you cannot compare it to a string and be done with it. You can check this by doing ClearCollect(ColTasks,Task) and see what's in the new table. 

     

    Also check this similar thread: https://powerusers.microsoft.com/t5/Building-Power-Apps/How-can-I-filter-by-a-SharePoint-People-Picker/m-p/329970/highlight/true#M94780

  • Matt22365 Profile Picture
    131 on at

    Hi

    Thanks for the quick response. That change, unfortunately, didn't work

     

    Thanks

    Matt 

  • Matt22365 Profile Picture
    131 on at

    Hi

    Thanks for the quick response

    I don fully understand what I need to do from that related thread, do I need to somehow link the people picker list with the task list? if so, how would I structure the formula?

    Thanks

    Matt 

  • eka24 Profile Picture
    20,923 on at

    Can you give a screen shot of the error?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Matt22365 Profile Picture
    131 on at

    Hi

    Its not so much an error, its just not showing data. If I remove the assigned to section it shows all tasks where completed = 0 so I know that section is working

    Thanks

    Matt

     

  • eka24 Profile Picture
    20,923 on at

    Does the user who has logged in has record In that List related to the User().FullName?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Matt22365 Profile Picture
    131 on at

    Hi

    Yes ive tried a few users who haven open items, all get the same blank Gallery

    Thanks

  • Verified answer
    Matt22365 Profile Picture
    131 on at

    Hi

    I found the fix for this issue. There was 2 problems:

    1.  the people column in sharepoint was set to just members of the task list. This stopped the 'assigned to' field from appearing in the fields in my App. I changed it to the full company and that field appeared
    2. The formula was wrong, this is the correct one - Filter(User().Email in 'Assigned To'.Email)

    I hope this helps anyone with the same issues as me

    Matt 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard