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

Referencing a range of numbers

G'day

 

In the following ClearConnect I have a sequencial range of numbers as values.

Is there a way to reference those values as a range of numbers? eg. 1:40

 

ClearCollect(TagNumberCollection,[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,33,34,35,36,37,38,39,40])

 

I have searched and not found the answer.

 

Thanks

Matt

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Referencing a range of numbers

HI @MattPA 

 

FirstN(TagNumberCollection,40) - will return a collection of the first 40 items 

 

ClearCollect(colnew,FirstN(TagNumberCollection,40))

 

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: Referencing a range of numbers

HI @MattPA 

 

FirstN(TagNumberCollection,40) - will return a collection of the first 40 items 

 

ClearCollect(colnew,FirstN(TagNumberCollection,40))

 

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
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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