web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Working with star schema
Power Apps
Answered

Working with star schema

(0) ShareShare
ReportReport
Posted on by 54

Hey All,

 

I have a star schema database which will feel my PowerApp.

Now I see a couple of ways to display load/ display the data, but I don't know which is best.

 

The options I see are:

  • Have fact table as source of gallery, with lookups to dimensions (on server)
  • Have fact table as source of gallery, with lookups to dimensions (in collection)
  • Make a big table view (fact and all dims joined) in SQL and load that as source of the gallery
  • Make a big table collection: AddColumns with LookUp to dimensions.

The data:

  • Fact table of roughly 20k items
  • 4 dim tables of 5k items each

 

Which should I use, looking at performance?

Categories:
  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @LVerhVRE - together with performance, another key area to consider when deciding which route to take is delegation.

     

    1. Have fact table as source of gallery, with lookups to dimensions (on server). The LookUp function is delegable. I would recommend this over using a Collection. See below. 

    2. Have fact table as source of gallery, with lookups to dimensions (in collection). A Collection should be used for specific scenarios. Loading thousands of records into a Collection means that data will be loaded into memory during the app session (which will have an adverse impact on performance).

    3. Make a big table view (fact and all dims joined) in SQL and load that as source of the gallery: There is no single right answer here when using relationships vs one merged table. It is generally more performant to "relate" multiple data sources together using a common identifier you can guarantee will be unique. Merging tables often creates redundant data and utilizes significantly more memory and processing power than creating relationships between multiple small tables. It is also likely that any future relationships will be impossible because any index or primary key is lost.

      In general though, this is the preferred option because the further down the ETL you can push transformation, the better it is as opposed to building that model in the target application. You should not have too many relationships, and you should not create one big table with everything in it. The ideal approach is to design something that helps to get the best of both worlds. Through the process of creating a model using a schema, you combine some of the tables (dimensions), and keep some of them to be connected through the relationships (dimension to fact table).

    4. Make a big table collection: AddColumns with LookUp to dimensions. Avoid. The AddColumns function is not delegable with any data source. In addition, every time a simple operation like a Filter is executed, the data source is rebuilt and this includes the AddColumns function being re-run. This will impede the performance of your app significantly. 
  • CU01111442-0 Profile Picture
    54 on at

    Thank you for the explanation!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard