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 / Lookup 2 values in for...
Power Apps
Answered

Lookup 2 values in formula

(0) ShareShare
ReportReport
Posted on by 55

Hi Everyone, not sure if this make sense but. Is it possible to lookup using 2 criterias? Right now this is the formula:

 

LookUp('[dbo].[SecondaryInvestor_Types]',gen_id=BrowseGallery1.Selected.gen_id)

 

But i need to look up both Gen_ID+Program in order to pinpoint the exact row of info from Sql.

 

Right now in the browsing screen when I select a different program, it will always show info from the 1st program on that list.

 

 

 

 

Capture.JPG
Capture2.JPG
Categories:
I have the same question (0)
  • WiZey Profile Picture
    3,023 Moderator on at

    Hello @Atran7785 ,

     

    Have you tried nesting a "And()" function inside your "Lookup()" condition?

     

    LookUp('[dbo].[SecondaryInvestor_Types]',And(gen_id=BrowseGallery1.Selected.gen_id;Program=something))

     

  • Atran7785 Profile Picture
    55 on at

    Hi Wizey,

     

    Appreciate your help. Unfortunately that didn't work(Maybe i did something wrong)

     

    LookUp('[dbo].[SecondaryInvestor_Types]',And(gen_id=BrowseGallery1.Selected.gen_id; Program=BrowseGallery1.Selected.Program))

     

    Error messages:

     

    Incompatible types for comparison.

    Delegation Warning

  • Verified answer
    WiZey Profile Picture
    3,023 Moderator on at

    Sorry, I used a semi-colon instead of a comma.

     

    Try again with this code please:

     

    LookUp('[dbo].[SecondaryInvestor_Types]', And(gen_id=BrowseGallery1.Selected.gen_id, Program=BrowseGallery1.Selected.Program))

     

  • Atran7785 Profile Picture
    55 on at

    Thank you so much! It worked!

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 385

#2
Vish WR Profile Picture

Vish WR 367

#3
timl Profile Picture

timl 340 Super User 2026 Season 1

Last 30 days Overall leaderboard