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 Lookup

(0) ShareShare
ReportReport
Posted on by 1,512

I have this formula and it works great except I need to to filter for the year 2022

If(IsEmpty(ComboBox2.Selected.Title), 
 Blank(), 
 LookUp(ChairSurvey_1, 'Meeting Group'= ComboBox2.Selected.MeetingName , ChairPerson.DisplayName )
)

 I tried to add && 'Service Year'=2022 but that didnt work and I am not sure how to get this to work.

Categories:
I have the same question (0)
  • fatjosh35 Profile Picture
    59 on at

    Did you try adding ".Value" after service year:

     

    && 'Service Year'.Value = 2022

     

    What data type is the Service Year field?

  • Dorinda Profile Picture
    1,512 on at

    Yes and it gave me "False" as the return value not a name I was expecting.

  • fatjosh35 Profile Picture
    59 on at

    Is service year a date field? a text field? or a number field?

  • Dorinda Profile Picture
    1,512 on at

    Text

  • fatjosh35 Profile Picture
    59 on at

    Try wrapping 2022 in double quotes then. 

     

    && 'Service Year' = "2022"

     

    Otherwise it would give you that false value since it's trying to compare a string (or text) to a number, which doesnt work.

  • Dorinda Profile Picture
    1,512 on at

    Yeah tried that and still got the false

    If(IsEmpty(ComboBox2.Selected.Title), 
     Blank(), 
     LookUp(ChairSurvey_1, 'Meeting Group'= ComboBox2.Selected.MeetingName , ChairPerson.DisplayName && 'Service Year' = "2022"
    ))
  • fatjosh35 Profile Picture
    59 on at

    Try moving it into the second parameter of the LookUp() function. That's where the filter logic goes.

    If(IsEmpty(ComboBox2.Selected.Title), 
     Blank(), 
     LookUp(ChairSurvey_1, 'Meeting Group'= ComboBox2.Selected.MeetingName && 'Service Year' = "2022", ChairPerson.DisplayName
    ))
  • Dorinda Profile Picture
    1,512 on at

    Now I just get a "Blank" as the response.

  • fatjosh35 Profile Picture
    59 on at

    Is ComboBox2 empty?

  • Dorinda Profile Picture
    1,512 on at

    No, it has last years name in it that is why I need to filter it to this years name

    Dorinda_0-1657055060857.png

     

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard