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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Canvas App - Performan...
Power Apps
Unanswered

Canvas App - Performance of gallery with data loaded through virtual tables in Business Central is slow. What is the best way to go?

(0) ShareShare
ReportReport
Posted on by 25

Hello,

 

We have a build a canvas app, which loads data from Business Central through a virtual table (in Dataverse). We use this code in a gallery:

 

Refresh('Virtualtable');;
Sort(Sort(ClearCollect(
    Department;
    If (
        Afd = "100";
        Filter(
            'Virtualtable';
            No = "100";
            HB < 510;
            BewAppStatus = "Open" || BewAppStatus = "Skipped"
        );
        If (
            Afd = "200";
            Filter(
                'Virtualtable';
                No = "200";
                HB = 200;
                BewAppStatus = "Open"
            );
            If (
                Afd = "210";
                Filter(
                    'Virtualtable';
                    No = "210";
                    HB = 210;
                    BewAppStatus = "Open"
                );
                If (
                    Afd = "300";
                    Filter(
                        'Virtualtable';
                        No = "300";
                        HB = 300;
                        BewAppStatus = "Open"
                    );
                    If (
                        Afd = "310";
                        Filter(
                            'Virtualtable';
                            No = "310";
                            HB = 310;
                            BewAppStatus = "Open"
)))))

 

In the gallery we have filters on the data; see the example above. The number of records that pass the filter are normally below 20, so in the gallery there are sometime 13, 5, 2, 18 records to see, depending on the value of the variable 'Afd'. But loading the gallery takes on a device (tablet) 5-20 seconds. The number of records in the totalset is around 1700. Scrolling can take up to 8 seconds to refresh. What can be the problem here? How can we improve this? All ideas are welcome!!!

 

 

Thank you in advance!

 

 

Categories:
I have the same question (0)
  • StretchFredrik Profile Picture
    3,395 Super User 2025 Season 2 on at

    If load times is an issue u can always get all the data into a collection in the Apps Onstart and then use that within the gallery. That should go faster in my experience.

  • BrutusG Profile Picture
    25 on at

    Thx for your answer. Unfortunately this is not possible in the app. Everytime the user goed to screen, the newest data has to be retrieved, because in the meanwhile the value of a record could have been changed..

  • StretchFredrik Profile Picture
    3,395 Super User 2025 Season 2 on at

    Does your gallery filter query have any delegation issues? That would also explain the poor performance. 

  • BrutusG Profile Picture
    25 on at

    No it has no delegation issues. Maximum of records is 50 that will be retrieved..

     

  • BrutusG Profile Picture
    25 on at

    Also the number of columns is like 20

  • BrutusG Profile Picture
    25 on at

    What I have done so far is

     

    reduce the number of fields in the gallery from 21 to 9 by combining text

     

    there are several lookups in the fields..

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard