cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
UmairAhmed
Frequent Visitor

Power App filter List based on Grand Parent ID

Hi experts,

 

I would appreciate your help in solving my problem:

I have three tables Building, Appartment, Residents and I have to Filter Residents based on selection of Building and I have to display Residents with Appartment name.     

 

Building Table has ( BuildingName, BuildingID)

Appartment Table has (AppartmentName, AppartmentID , BuildingID)

Resident has (ResidentName, AppartmentID, DOB, Gender)  

 

Building has one to many relation with Appartment 

Appartment has one to many relation with Resident  

 

I want to display  Resident Name, AppartmentName in the List.   I would appreciate your suggestion to solve this. I tried using ClearCollect with Lookups but could n`t able to work out.  

 

Regards, Umair Ahmed

4 REPLIES 4
UmairAhmed
Frequent Visitor

I have tried this: 

First I filter Direct Child 

ClearCollect(BuildingAppartments,Filter(AppartmentsAppartmentID = BuildingGallery.Selected.BuildingID));

 

Then for the Grant child I am trying below

ClearCollect(ResidentAppartment,"Resident",LookUp(Residents,AppartmentID= BuildingAppartments[@AppartmentID] ))

 

 

I get below errors

Invalid ArgumentType on "="   

Delegation warning on BuildingAppartments[@AppartmentID]

 

 

 

Hi @UmairAhmed

What data source are you using for your app? If it's SQL Server, you could use a View to simplify this.

UmairAhmed
Frequent Visitor

Hi @timl,

Datasource is Dynamics365 CRM

 


@timl wrote:

Hi @UmairAhmed

What data source are you using for your app? If it's SQL Server, you could use a View to simplify this.


 

Hi Umair

I've got the same issue and was wondering if you ever got this resolved? Is it at all possible to do this?

Cheers!

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,006)