Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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)

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.