cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RupertBear
Regular Visitor

Repeating Index Colum over Values 1-n

Hi,

 

I am struggling to implement a new index column that starts from one, counts up to 44 and then repeats this until the end of my data ( the number of rows varies depending on the source).

 

i.e:

1

2

3

....

44

1

2

3...

 

 

Many thanks 

 

1 ACCEPTED SOLUTION
PradipMCT
Resolver II
Resolver II

Hi 

 

You can create the index column first. 

 

Power Query --> Add Column --> Index column

 

Now create a modulo column which you'll find under 

 

Power Query --> Add column --> Standard --> Modulo 

Enter the number 44 as mentioned by you. 

 

You are sorted.

 

If this is the solution then please mark it as a solution while responding. 

 

Thanks.

Pradip Pardeshi (Microsoft Certified Trainer)

View solution in original post

1 REPLY 1
PradipMCT
Resolver II
Resolver II

Hi 

 

You can create the index column first. 

 

Power Query --> Add Column --> Index column

 

Now create a modulo column which you'll find under 

 

Power Query --> Add column --> Standard --> Modulo 

Enter the number 44 as mentioned by you. 

 

You are sorted.

 

If this is the solution then please mark it as a solution while responding. 

 

Thanks.

Pradip Pardeshi (Microsoft Certified Trainer)

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.