I have a gallery in Power Apps that is combining data from three separate entities:
- Customer
- Customer Details, contains lookup field to Customer. Customer to Customer Details is 1:1
- Orders, contains lookup field to Customer. Customer to Orders is 1:N
The gallery should show a field from Customers, a field from Customer Details, and the date of the last order they placed from orders. I have accomplished this in my app using AddColumns in the Items property but it is very slow. I used AddColumns instead of looking up the values on the label because I need to sort on the values from Customer Details and Orders.
Is it possible to create a view between these 3 tables? I have only been able to get one on Customer Details and add a field from Customer. Is there something like Join in CDS where I can create the view and pull that into the app instead?