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 / ClearCollect with 4 ta...
Power Apps
Unanswered

ClearCollect with 4 tables.

(0) ShareShare
ReportReport
Posted on by 15

Hi,

 

I am trying to create a collection with 4 tables. My code has no errors but I'm also not getting a result. It is basically supposed to get the record from the first table, then retrieve the next values based on a matching ID, and so on for all 4 tables. Can anyone see any issues with my logic here? 

 

ClearCollect(
    Results,
    {
        JobTitle: Jobs.Title,
        JobDescription: Jobs.Description,
        JobSkillsDescription: AddColumns(
            Filter('Job Skills', 'Job ID' = Jobs.'Job ID'),
            JobSkillsDescription, Description
        ),
        UserSkills: AddColumns(
            Filter('User Skills', 'User Skill ID' in 'Job Skills'.'Skill Group ID'),
            UserSkillsDescription, Title
        )        
    }
)

 

The 4th table not shown in the code here is trying to retrieve the Persons name from a User table, but I wasn't about to do that without errors yet so I thought I'd start with the first 3 and get them working before I add that back.

 

Thanks

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @Kathryn_Marie 

     

    can you try this please:

    ClearCollect(
     Results,
     AddColumns(
     Jobs,
     JobSkillsDescription,
     AddColumns(
     Filter('Job Skills', 'Job ID' = Jobs.'Job ID'),
     "JobSkillsDescription", Description
     ),
     UserSkillsDescription,
     AddColumns(
     Filter('User Skills', 'Skill Group ID' in Filter('Job Skills', 'Job ID' = Jobs.'Job ID').'Skill Group ID'),
     "UserSkillsDescription", Title
     )
     )
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Kathryn_Marie Profile Picture
    15 on at

    Thanks for your reply. I'm still getting a blank response. I'll describe the tables a bit better. So the table Jobs, has a list of jobs and information about it, then each job has multiple skills associated with it. So firstly, for every job, the next column needs to be a skill description. Then for every skill description, there will be multiple matches from the user skills table, submitted by different users, and finally I need to get the users name with the ID from the User Skills collection so I know who put in that description.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard