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 not working as ...
Power Apps
Answered

Filter not working as expected

(0) ShareShare
ReportReport
Posted on by 107

Hi,

 

I'm building a multiscreen app and trying to filter a form using a text control from a previous form control within the app and a drop down box that is populated from a choices column in SharePoint. I can get LookUp to find records based on a a single criterion, but Filter just wont work.

 

Here's what I'm trying

 

Filter('Annual Reviews','Employee Number'=DataCardValue42.Text,'Review Period'=Dropdown2.Selected.Value)

 

 

Annual Reviews is the SP List

Employee Number is a text column in the SP list

Review Period is a choice column in the SP list

 

This works fine;

 

LookUp('Annual Reviews','Employee Number'=DataCardValue42.Text)

 

This does not;

 

LookUp('Annual Reviews','Review Period'=Dropdown2.Selected.Value)

 

Nor does;

 

LookUp('Annual Reviews','Review Period'=Dropdown2.Selected)

 

 

Replacing LookUp with Filter also errors.

 

Thanks in advance.

Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi

    Try this

    Filter( 'Annual Reviews',
    'Employee Number' = DataCardValue42.Text,
    'Review Period'.Value = Dropdown2.Selected.Value )

    Thanks!

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.
  • rickydg Profile Picture
    107 on at

    Unfortunately this doesn't work - gives 'Expected Record value' error.

  • Verified answer
    rickydg Profile Picture
    107 on at

    I don't think I was clear enough in my original post. My intention was to filter to a single result in the table to show in a form, therefore was placing this code in the Items property of the form control.

    It appears that as the Filter was only returning a single result, it was not a table as such and causes an error.

    The solution is to use a double LookUp;

    LookUp('Annual Reviews','Review Period'.Value=Dropdown2.Selected.Value && 'Employee Number'=DataCardValue42.Text)

    Hopefully this is useful to some. 

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard