Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

One-To-Many Display Using Common Data Service in PowerApps

I am currently testing PowerApps using the Common Data Service.  I have set up two related tables using the lookup field in the second table (Staff Members and Staff Member Organizations).  I have successfully created an app based on the Staff Member table.  It houses PrimaryID, StaffMemberFirstName, StaffMemberLastName, StaffMemberBirthMonth, and StaffMemberBirthDay.  The second table houses PrimaryID, StaffMember_, StaffMemberOrganization, and StaffMemberPosition. StaffMember_ is the lookup field containing the staff member's PrimaryID.  The gallery for the staff members is named StaffMemberBrowseGallery.


When navigating to the detail screen, I would like to have the name of the person (again) with a list of the organizations they belong to.  


I have set up a text gallery on the detail page, and I have filtered using the following formula:

Filter('Staff Member Organization', StaffMember_ = StaffMemberBrowseGallery.Selected.PrimaryId )

However, StaffMember_ is highlighted with the blue line with the info icon showing.  What am I doing wrong?  I've looked over the filter function more than once, but don't understand why this isn't working.


Any help would be appreciated.  Thank you. 

Helper V
Helper V

I think this fiter formula cannot work to achieve this.

Community Support
Community Support

Hi Gizmo,


Have you tried to let PowerApps to create the app for you using the CDS connection directly? 




Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Frequent Visitor

Could someone at Microsoft help me with this?  The two answers I have received are not helpful at all. 

Helpful resources

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.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,980)