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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Gallery to display dat...
Power Apps
Unanswered

Gallery to display data from multiple records

(0) ShareShare
ReportReport
Posted on by 29

I've got a Canvas app which is connected to three Sharepoint Lists.

1) Occurrences

2) Hazards

3) Risks

 

A certain event triggers my hazardGallery to be populated with the hazards related to a particular occurrence.

Each hazard has multiple risks related to it. I'm trying to find a way to populate my riskGallery with all the risks that are applicable to all hazards related to a particular occurrence.

 

Pathum1_0-1670388472201.png

My tables are sort of like this.

 

For example, if I filter my hazard gallery for 22OC01, it shows 22HAZ01, 22HAZ03 and 22HAZ04. I need to filter my risk gallery with the risks associated to the above three hazards. The risk gallery SHOULD show details of 22Ri01, 22Ri02, 22Ri07, 22Ri03, 22Ri06.

 

Some help would be appreciated greatly.

 

 

 

 

 

Categories:
  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @Pathum1 

     

    Could you please tell me:

    Do you want to enter the OccID through a control like TextInput to display the hazardID in the hazard gallery?
    Then filter the riskID of the risk gallery based on the hazardID displayed by the hazard gallery?

    I have made a test for your referene:

    1.

    vliweimsft_0-1670395508481.png

    2.

    vliweimsft_1-1670395517937.png

    Filter(Hazard,HazardID in ForAll(Filter(occurrence,OccID=TextInput1.Text),HazardID))

    3.

    vliweimsft_2-1670395542777.png

    Filter(Risk,HazardID in ForAll(Filter(Hazard,HazardID in ForAll(Filter(occurrence,OccID=TextInput1.Text),HazardID)),HazardID))

     

    Best Regards,

    Levi

     

     

     

  • Pathum1 Profile Picture
    29 on at

    The code you've shown sort of gave me an idea and I redid it this way. The below works perfectly and does what I need. There is a delegation warning for "in", i'll deal with it later on.

    Filter(Risks,RiskID in ForAll(Hazards, LookUp(Hazards, RiskID = RiskID, RiskID)))

     

  • Pathum1 Profile Picture
    29 on at

    The code you've shown sort of gave me an idea and I redid it this way. The below works perfectly and does what I need. There is a delegation warning for "in", i'll deal with it later on.

    Filter(Risks,RiskID in ForAll(Hazards, LookUp(Hazards, RiskID = RiskID, RiskID)))

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 337 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard