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 / Loading Speed of data ...
Power Apps
Unanswered

Loading Speed of data on Power Apps

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Is it possible some how to optimize this code:

 

Collect(
Days,
AddColumns(
Sequence1,
"Date1",
Date(varYear, varMonth, Sequence1[@Value]),
"Employees",
Filter(
colHolidays,
DateValue('First Day') <= Date(Year(DatePick_1.SelectedDate), Month(DatePick_1.SelectedDate), Sequence1[@Value])
&& DateValue('Last Day')>= Date(Year(DatePick_1.SelectedDate), Month(DatePick_1.SelectedDate), Sequence1[@Value])
)
)
)

 

 

I use this for holiday app. The problem is that my loading speed for the calendar is around 0.8-1.5s. Is it possible to make it better?

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    Hi @Anonymous ,

    There is probably some optimisation is there, but 0.8 to 1.5 seconds is quick by Power Apps standards. I am also unsure what you are doing with Sequence1 as you are then filtering a collection and the syntax seems a bit reversed.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I add days of the month with sequence collection:

     

    ClearCollect(Sequence1, Sequence(Day(DateAdd(DateAdd(DatePick.SelectedDate,1,TimeUnit.Months),-Day(DatePick.SelectedDate),TimeUnit.Days)))),

  • WarrenBelz Profile Picture
    155,463 Most Valuable Professional on at

    @Anonymous ,

    I would need to build a model to try to test all of that and doubt that I would get it running any quicker with the various variations I might come up with.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Okay, thanks for your effort. If you come up with any Idea what I could try, let me know.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard