Issue: Need to populate a table on change of drop down which is build up of 3 tables ( 1 main table and 2 Look Up tables - kind of INNERJOIN in SQL).
I am using SQL as a backend.
Achieved: I am able to achieve the Lookup on 1 table at max using ShowColumn and AddColumns under 'Items' of the Data Table.
Something like this I have done:
LookUp(Customers, CustomerId = Orders[@CustomerId], CustomerName)),
"OrderId", "CustomerName", "OrderDate")
Source which helped me: https://powerusers.microsoft.com/t5/General-Discussion/Syntax-for-joining-tables/m-p/61425#M25380
Now I want to add a column which is an ID field in another table and want to get the Description based on the Lookup.
Let me know on how to do this? Any quick help will be much appreciated.
Note: I have not tried collections yet.
Go to Solution.
You can add multiple columns in a single AddColumns call, so you can have something like the expression below:
LookUp(Customers, CustomerId = Orders[@CustomerId], CustomerName),
LookUp(Suppliers, SupplierId = Orders[@SupplierId], SupplierName)),
"OrderId", "CustomerName", "SupplierName", "OrderDate")
Hope this helps!
View solution in original post
That worked like a charm!!
Thank you so much. Now i am starting to pickup the syntax in PowerApps. They are really cool.
Will post more questions as I proceed.
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
Learn how to build the business apps that you need.