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.

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.