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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Frigge__
Frequent Visitor

New column with specific number sequence

Hi, 

 

I do a power query to a local database, and now I need to add a new column with a cyclic number sequence. I need to do this in Power Bi.

The column should start with 1 and go up to 93 and then start over. 

 

Please advise.

 

BR

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @Frigge__ ,

 

First, go to the Add Column tab in Power Query > Index Column > From 0.

Then add another custom column like this:

Number.Mod([Index], 93) + 1

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
Frigge__
Frequent Visitor

Works great @BA_Pete !

Thanks!

BA_Pete
Super User
Super User

Hi @Frigge__ ,

 

First, go to the Add Column tab in Power Query > Index Column > From 0.

Then add another custom column like this:

Number.Mod([Index], 93) + 1

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors