I have SharePoint lists as shown below.
List A
| ID | Job Number (Text) | Site Address (Text) | Supervisor (Text) |
| 44 | C20-65 | PRINCE OF WALES AV, MILL PARK REHAB | Nick |
List B
| ID | Job ID (number column reference to ID column of List A) | Machinery (Multi Select Choice Column) | Crew Member(Text) |
| 1 | 44 | DPU, CIVIL Truck - 9 | David |
| 2 | 44 | BOBCAT-6, BOBCAT-5 | Benjamin |
List C
| ID | Job ID (number column reference to ID column of List A) | Machinery (Multi Select Choice Column) | Crew Member (Text) |
| 1 | 44 | Tipping-Truck-5, Tipping-Truck-6 | Ethan |
My resultant table or collection should look like below
| Job Number | Site Address | Supervisor | Machinery List B | Crew Member List B | Machinery List C | Crew Member List C |
| C20-65 | PRINCE OF WALES AV, MILL PARK REHAB | Nick | DPU, CIVIL Truck - 9 | David | Tipping-Truck-5, Tipping-Truck-6 | Ethan |
| C20-65 | PRINCE OF WALES AV, MILL PARK REHAB | Nick | BOBCAT-6, BOBCAT-5 | Benjamin | | |
Can someone help in writing a collection function to get me the resultant table. I initially tried using Power Automate to get into a csv but the format of table is going completely wrong with my flow. I though achieving this in PowerApps is bit straight.