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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
iyogj
Regular Visitor

Automatic Addition of Date

Hi All, I am new to the community and this will be my first post of Many. I am new at power BI and have some basic idea only.


My Target at the moment is i have a timestamp column with date and time in it. is there an automatic way for it to create a new column for date with Additional Months (ie 3month). see below images.

 

iyogj_0-1637099098296.png

iyogj_1-1637099170030.png

 

Really apologies if the task is just simple enough, i am new at powerBI

 

Cheers,

Jaydee

 

 

 

1 ACCEPTED SOLUTION

Thanks. That clears things up nicely.

 

Try adding a custom column using Date.AddMonths:

Date.AddMonths([#"Start time / Date"], 3)

View solution in original post

4 REPLIES 4
AlexisOlson
Super User
Super User

Can you show what result you're expecting? It's not clear to me what this new column should look like.

Hi Alexis,

 

Thank you for your response 

 

Results should be like this below table base with the table photo above "Start time / date" 

I am on the country with dd/mm/yy Format.

 

at the moment i am doing this on november month but i want it to be automatic everytime there is a new start time/date it will add additional 3months. 

 

hoping this is clear.

 

Cheers,

jaydee 

 

Start time / DateNext Target time / date (Target results of New column)

15/11/2021 3:15:36am

15/02/2022 3:15:36am
14/11/2021 11:07:16pm14/02/2022 11:07:16pm
14/11/2021 10:39:48pm14/02/2022 10:39:48pm
14/11/202110:36:43pm14/02/202210:36:43pm
14/11/202110:13:08pm14/02/202210:13:08pm
14/11/2021 10:02:44pm14/02/2022 10:02:44pm
14/11/2021 9:59:43pm14/02/2022 9:59:43pm
4/11/20214/02/2022
and so On

and so On

Thanks. That clears things up nicely.

 

Try adding a custom column using Date.AddMonths:

Date.AddMonths([#"Start time / Date"], 3)

Works like magic, and as i taught it is a very simple trick. This Sort things out Really appreaciate it alexis. 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.