cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
loubou
Level: Power Up

Collection from 1

Hey guys! 

 

I am currently trying to create a collection with all numbers from 1 to a number extracted from a Text Input! Can someone please help me?

 

Thank you in advance!

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Collection from 1

Hi @loubou 

 

ClearCollect(
NewCollection,
FirstN(
[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],
Value(TextInput6.Text)))

 

you can increase the number beyond 32 as well (but you will need to define a top limit)

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
Dual Super User
Dual Super User

Re: Collection from 1

Hi @loubou 

 

ClearCollect(
NewCollection,
FirstN(
[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],
Value(TextInput6.Text)))

 

you can increase the number beyond 32 as well (but you will need to define a top limit)

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (6,074)