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 / 2nd Level Lookup Retri...
Power Apps
Answered

2nd Level Lookup Retrieval

(0) ShareShare
ReportReport
Posted on by

How do you retrieve a data if it's in the 2nd level lookup like the example below?

Company Entity
 '-----> Employee Lookup
 '-----> Health Record Lookup
 '------> Last Checkup Date

So, basically, I want to retrieve the Last Checkup Date of the employees of the Company.

I tried this but it gives me an error saying "Multiple levels of many-to-one relationship expansion aren't supported."

ClearCollect(CompanyHealthRecord, Filter(Company, Employee.HealthRecord.LastCheckupDate < Now()));

Any workaround for this? 

Categories:
I have the same question (0)
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @roguetomato ,

     

    For the time being, PowerApps doesn't support to look up a lookup field yet.

    If you want this feature, please submit an idea to PowerApps Ideas Forum:https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    Best regards,

    Sik

     

  • Romsteck Profile Picture
    83 on at

    Hi @v-siky-msft,

     

    Is there a workaround to do this 2nd level lookup ?

     

    Thanks in advance ! 😉

     

    Bests Regards.

  • majuarezg Profile Picture
    28 on at

    Did you find any solution to this ??

  • ViswaMullapudi Profile Picture
    2 on at

    Hi,

    I found some work around to get the value for 2nd Level Lookup.

    Try your query as below, considering EmployeeID is your unique identifier in Employee entity and have used ThisItem considering you are using  value from Gallery.

    ClearCollect(CompanyHealthRecord, Filter(LookUp(Employee, EmployeeID = ThisItem.Employee.Employee,HealthRecord).LastCheckupDate));

     

    I tried something for filtering dropdown list and it worked for me.

     

    If(LookUp(Employee, EmployeeID = ThisItem.EmployeeID.EmployeeID, HealthRecord).Name = "XXXX", Filter(Choices(HealthRecord.Optionset'), Text(Value) in ["aaaa"]),
    LookUp(Employee, EmployeeID = ThisItem.EmployeeID.EmployeeID, HealthRecord).Name = "ZZZZ", Filter(Choices(HealthRecord.Optionset'), Text(Value) in ["bbbb"]),
    Filter(Choices(HealthRecord.Optionset'), Text(Value) in ["ccccc", "ddddd", "eeeee"]));

     

    Cheers 🙂

     

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

#2
11manish Profile Picture

11manish 191 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 122 Super User 2026 Season 2

Last 30 days Overall leaderboard