cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Objekt
Frequent Visitor

Power BI Power Query: Function to start from a Set date.

Hi All,

I'm sure this is pretty easy but I'm not too familiar with Power Query.

Below I have two Columns
- Index which starts from 0
- AA - This counts from 0 to 29 and then repeats every 30 rows. This starts from '0' in the Index column.

AA- = Table.AddColumn(#"Added Index", "AA", each Number.Mod([Index],30))

Objekt_0-1643210533162.png


What I want to do is create a new column the exact same as AA but with the counting starting from 5 in the index column instead of 0. 

I've had a look around but nothing has helped so far.

Thanks in Advance.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Objekt , Add +6 to this formula or AA?

Number.Mod([Index],30)+6

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Objekt , Add +6 to this formula or AA?

Number.Mod([Index],30)+6

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!
!! Subscribe to my youtube Channel !!

Thanks @amitchandak worked after adding it to [Index]

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!