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 / Gallery loading is una...
Power Apps
Answered

Gallery loading is unacceptably slow, but there are no performance or delegation issues.

(0) ShareShare
ReportReport
Posted on by 143

Hi

 

My gallery takes about 10 seconds to load, which is too slow. And there are only 20+ records. 

 

I am not sure what I did wrong, could you please help to advise how to improve the performance?:

 

This is the Items property of the gallery:

 

DropColumns(
	SortByColumns(
		AddColumns(
		Filter(ProjectsList, OpportunityStatus.Value="Approved" && (StartsWith(Title,txtSearch_1.Text)||StartsWith(ProjectLead.DisplayName,txtSearch_1.Text)) && (ProjectStatus.Value in FilterComboBox_1.SelectedItems.Value || FilterComboBox_1.Selected.Value = Blank()
 ))
 ,"projectstatus_value",ProjectStatus.Value
 ,"projectpriority_value",Priority.Value
 ),
		varSortColumnPL,
		varSortDirectionPL
 ),
		"projectstatus_value",
 "projectpriority_value"
)
	

 

This is the declaration of ProjectsList in my App OnStart function. I used the collection to avoid delegation issues:

 

ClearCollect(ProjectsList,
 AddColumns(
 ContinuousImprovementProjects As CIProjects,
 "EarliestMilestoneStartDate",
 First(
 Sort(
 Filter(
 'CI Milestones' As CIM1,
 CIM1.ProjectID=CIProjects.ID)
 ,MilestoneStartDate,
 SortOrder.Ascending
 )
 ).MilestoneStartDate,
 "LatestMilestoneEndDate",
 First(
 Sort(
 Filter(
 'CI Milestones' As CIM2,
 CIM2.ProjectID=CIProjects.ID)
 ,MilestoneEndDate,
 SortOrder.Descending
 )
 ).MilestoneEndDate,
 "LatestCompletionEndDate",
 First(
 Sort(
 Filter(
 'CI Milestones' As CIM3,
 CIM3.ProjectID=CIProjects.ID && CIM3.MilestoneStatus.Value="Completed")
 ,MilestoneEndDate,
 SortOrder.Descending
 )
 ).MilestoneEndDate,
 "LatestRequest",
 First(
 Sort(
 Filter(
 'CI Requests',
 ProjectID=CIProjects.ID)
 ,RequestDesc,
 SortOrder.Descending
 )
 ).RequestDesc,
 "LatestRequestDate",
 First(
 Sort(
 Filter(
 'CI Requests',
 ProjectID=CIProjects.ID)
 ,Created,
 SortOrder.Descending
 )
 ).Created,
 "LatestUpdate",
 First(
 Sort(
 Filter(
 'CI Updates',
 ProjectID=CIProjects.ID)
 ,UpdateDesc,
 SortOrder.Descending
 )
 ).UpdateDesc,
 "LatestUpdateDate",
 First(
 Sort(
 Filter(
 'CI Updates',
 ProjectID=CIProjects.ID)
 ,Created,
 SortOrder.Descending
 )
 ).Created
)
);

 

Categories:
I have the same question (0)
  • Verified answer
    Amelia Choon Profile Picture
    143 on at

    Closing this incident, I found a thread that says collections should not be used. Will try to work with my original datasource

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard