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 on multiple col...
Power Apps
Answered

Lookup on multiple columns

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I want to do lookup on two fields - like below
AddColumns(
tmpcoll,
"isAvail",
If(
!IsBlank(
LookUp(
tmptbl,
'emp Id' = Result,
deptId = tmpDeptId,
'emp Id'
)
),
true,
false
)

);

 

Is there any alternative ways to achieve this? I want to add multiple columns based on some condition.

Thanks

Categories:
I have the same question (0)
  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at

    @sheladia 
    Here's the solution 🙂

    AddColumns(
     tmpcoll,
     "isAvail",
     !IsBlank(
     LookUp(
     tmptbl,
     'emp Id' = Result
     AND deptId = tmpDeptId,
     'emp Id'
     )
     )
    )

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • sheladia Profile Picture
    Microsoft Employee on at

    @mdevaney, You are simply Awesome 🙂

    It works.

    Thank You!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,045

#2
Valantis Profile Picture

Valantis 675

#3
11manish Profile Picture

11manish 592

Last 30 days Overall leaderboard