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 / How to filter a list b...
Power Apps
Answered

How to filter a list based on value from look-up table

(1) ShareShare
ReportReport
Posted on by

I'm using SharePoint lists.  I've got a list of tickets, cleverly named TicketList that includes columns that represent their:

  • Status (Named TaskStatus (lookup column))
  • Task owner (Named AssignedTO (person field))

OldDogNewTricks_0-1692733582509.png

 

The TaskStatus column is the look-up that references another List named StatusList.  StatusList includes the following columns:

  • Title (Text and includes Assigned, Not Started, Waiting for response, Closed, Cancelled) 
  • Active Yes/No (Everything is Yes now)
  • Open Yes/No.  All are set to Yes except for the Closed and Cancelled values.

OldDogNewTricks_1-1692733648542.png

 

My screen has a dropdown with the options of Open or Closed.

 

I want to filter items from TicketList based on who is logged in against the AssignedTO value AND the Open (Y/N) value from TaskStatus.

 

The following filter works against the AssignedTo column (If(OpenCloseDropdown.SelectedText.Value="Open",Filter(TicketList,User().FullName=AssignedTO.Value))),

but I can't figure out how to link back to the TaskStatus Open column for the remainder of the filter.

 

 

The dropdown is named OpenCloseDropdown.

 

The following filter also works but does not accomplish everything I want:

If(OpenCloseDropdown.SelectedText.Value="Open",Filter(TicketList,User().FullName=AssignedTO.Value And TaskStatus.Value = "Assigned"))

 

Thank you in advance for any suggestions.

Categories:
I have the same question (0)
  • Verified answer
    poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    You can accomplish this by using a combination of Filter and LookUp

    Here's a formula that should work for your scenario:

    If(
     OpenCloseDropdown.SelectedText.Value = "Open",
     Filter(
     TicketList,
     User().FullName = AssignedTO.Value,
     LookUp(StatusList, Title = TaskStatus.Value).Open = "Yes"
     )
    )
    

    This formula performs the following:


    Checks if the dropdown selection is "Open."
    Filters the TicketList based on the logged-in user's AssignedTO value.
    Uses LookUp to find the corresponding TaskStatus from the StatusList, and checks if the Open column value is "Yes."


    Make sure to adjust the formula if the Open column in the StatusList is a boolean rather than text. If it's a boolean, you should use

    LookUp(StatusList, Title = TaskStatus.Value).Open = true

     instead.

     

    See if it helps @OldDogNewTricks 

  • OldDogNewTricks Profile Picture
    on at

    Fantastic and Thank You!  I'm brand new to PowerApps, and this is the type of functionality I knew was there but couldn't figure out on my own.

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

#2
Kalathiya Profile Picture

Kalathiya 340

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 333 Super User 2025 Season 2

Last 30 days Overall leaderboard