Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Using two CRM related entities to return values

This is a very difficult question for me to word, however i shall try my best.


I have two entities which i have connections to on PowerApps.

These are not their true names of the entities, only an example of the situation:

One entity called C which stores related items about a user

Another called CS which is the linking table between C and S allowing for a 1:n relationship.

There is another table called S which stores user data.


The issue, is that in order to filter values that are in C, i have to also filter in CS based on S's value.

My current syntax is as follows but it doesnt work:

Filter(C, cID = Filter(CS, _s_value = Gallery1.Selected._S_value, _C_value))

Any help on getting this to correctly work would be very much appreciated.

Community Support
Community Support

Re: Using two CRM related entities to return values

Hi UncountedBrute,


Please try to use Lookup function instead of Filter function to find the cID.


More details about Lookup function, please check it at here:


Please try it on your side. If you need more help, please feel free post back.


Best regards,
Mabel Mao

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

Helpful resources


Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!


Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)


Community Highlights

Check out whats happening in Power Apps


Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

Top Solution Authors
Top Kudoed Authors
Users online (6,990)