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

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
Highlighted
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
Highlighted
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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (7,383)