Power Apps Galleries are great at displaying tables. They are quick and easy to use and filtering or sorting data is pretty straightforward as I’ve shown in earlier posts
One of the limitations of Power Apps Galleries though (at least at the time of writing) is that they can’t be used to directly display the data from multiple tables at the same time. You can write a formula to try and do this and often don’t get an error message, but no data is displayed… There is a way around this limitiation though, using the AddColumns function
In order for tables to be linked they need a common element of data to be the Primary Key so the tables act as a pseudo relational database. The actual data source itself doesn’t matter, the tables can be hosted in Excel, SharePoint, Azure Server, CDS or across different data sources. Its the data in the table that matters. The data linked by the Primary Key common to two tables can have a Many to Many relationship , One to Many or a One to One relationship.
In the example below, Continents, Countries and Capitals are three seperate tables. ‘Continent’ is the Primary Key that links Continents to Countries and the Primary Key that links Countries to Capitals is ‘Country’
The is a One to Many relationship between Continents and Countries ie One Continent consists of Many Countries. There is a One to One relationship between Countries and Capitials because one Country has One Capital City. Many to Many relationships also exist such as the case of Russia which is located mainly in Asia but also in Europe too
Excellent article. I certainly love this website. Continue the good work!
Thank you Dean – I’m pleased you’re finding the site useful. Chris