cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MattPA
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
RezaDorrani
Dual Super User II
Dual Super User II

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
RezaDorrani
Dual Super User II
Dual Super User II

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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,293)