web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter gallery issue
Power Apps
Answered

Filter gallery issue

(0) ShareShare
ReportReport
Posted on by 11

Hi,

I have a app connected to D365 Fin&Ops. I am using two entities and these are related (CPMProjProcessAppStatus.RecId1 = ProjProcessAppStatusAssignedUsers.Reference) with each other. ProjProcessAppStatusAssignedUsers shows that which CPMProjProcessAppStatus record assigned to who.  One CPMProjProcessAppStatus record could be related more than one ProjProcessAppStatusAssignedUsers record. I have a gallery that uses CPMProjProcessAppStatus entity, and need to filter via ProjProcessAppStatusAssignedUsers  entity. I wrote a formula like below, but it didn't work. How formula should I write? Thank you for your comments.

 

Filter(CPMProjProcessAppStatus, RecId1 in Filter(ProjProcessAppStatusAssignedUsers, 'User ID'=Text(Office365Users.UserProfile(User().Email).MailNickname)).Reference)

 

I have the same question (0)
  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @rmzn,

     

    I took your example here and created a sample application with the following:

    Parent table - would map to your CPMProjAppStatus table

    Child table - would map to your ProjProcessAppStatusAssignedUsers table

     

    I then created a gallery that would display the distinct Parent records that match the email of the signed in user on the child records. 

     

    The following shows the Items code I used Distinct(Filter(Children,Email=User().Email),'Parent')

    and then in the Gallery itself I referenced the Title and Subtitle from the Parent's record 

    ThisItem.Result.Name 

    ThisItem.Result.'Created On'

     

    I tested with two of the same emails on a child record to verify it filtered to only one parent record and did not duplicate (this is why I needed the distinct).  Show records in child table in screen shot to show you what I tested.

    dpoggemann_0-1632320287685.png

    The data environment was the Dataverse so hopefully this is ok...

     

    Hope this helps.  Please accept if answers your question or Like if helps in any way.


    Thanks much,

     

    Drew

     

  • Verified answer
    rmzn Profile Picture
    11 on at

    Hi @dpoggemann

    Thank you for your reply. If I have one table I can filter as you did. For two table the formula doesn't give any error but doesn't take any record. I tried to make a collection like your table, this time details form didn't work. Then I found another solution; we made new entity with two tables and I could do everything 🙂

     

    thanks,

  • Drew Poggemann Profile Picture
    9,287 Most Valuable Professional on at

    Hi @rmzn ,

     

    If your issues is resolved you might want to mark resolved.  I am confused on how you solved, I had to do the above approach to only show the records on the parent table where the user was related to the child records so if there were 3 parent records and all the children records only related to two of the parents with the user's information on the child this is the only way I could show the 2 parent vs. all 3.  Please share your solution if you wouldn't mind.

     

    Thanks,


    Drew

  • rmzn Profile Picture
    11 on at

    Hi @dpoggemann ,

     

    As I said, we create a new entity. Because I couldn't run filter formula with two entity. The formula didn't give any error but didn't work. You have one table and don't have any error. Like you I create a new entity that unify the records from two tables. 

    Thanks,

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard