cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
patella
New Member

Autofill a dynamic collection

Hello,

I am trying to build a collection that includes the dates of all Mondays in a year.  For example in 2020 the records would be 6-Jan, 13–Jan, ... all the way to 28-Dec.  is this possible?  How?

Thanks,

Pat

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks @eka24 !

Your suggestion led me into the right direction and I found the same solution explained somewhat better (at least for me) here: https://www.dynamicpeople.nl/en/news/while-loop-powerapps/.  The timer trick works and if I make the control invisible it does not even impact the UI design.  All good!

Side-comment: I am just wondering how to best estimate the Duration property and what happens if I underestimate... my loop is quite simple and runs well even with 1 millisec.  Is there a real risk here and what is a possible mitigation (other than setting it very high, just to be on the safe side)?

(and it is a shame that there is no better way in PowerApps to build "proper" loops)

Regards,

Pat

View solution in original post

2 REPLIES 2
eka24
Super User
Super User

This post https://powerusers.microsoft.com/t5/Building-Power-Apps/Collect-weeks-between-two-dates/m-p/618947#M...

will address your request

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Thanks @eka24 !

Your suggestion led me into the right direction and I found the same solution explained somewhat better (at least for me) here: https://www.dynamicpeople.nl/en/news/while-loop-powerapps/.  The timer trick works and if I make the control invisible it does not even impact the UI design.  All good!

Side-comment: I am just wondering how to best estimate the Duration property and what happens if I underestimate... my loop is quite simple and runs well even with 1 millisec.  Is there a real risk here and what is a possible mitigation (other than setting it very high, just to be on the safe side)?

(and it is a shame that there is no better way in PowerApps to build "proper" loops)

Regards,

Pat

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,347)