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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
anongard
Helper I
Helper I

Adding time in Query Editor

Hey all,

 

I'm having a hard time figuring out how to add one month to every date in a column using power query or M syntax. I can easily add time using DAX in data view, but in order to do a Group By to create a pivot-tablesque solution I need to do this in the Query Editor, or so I think. Is there any simple way to do this? 

 

I have gathered from previous threads that it has something to do with the #duration function, but I don't actually know how to apply that. Any help would be appreciated. 

 

Thanks,

Alex

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@anongard

 

Hi, In a New Custom Column:

 

=Date.AddMonths([DateField],1)

 

Regards

 

Victor

Lima - Peru




Lima - Peru

View solution in original post

3 REPLIES 3
Vvelarde
Community Champion
Community Champion

@anongard

 

Hi, In a New Custom Column:

 

=Date.AddMonths([DateField],1)

 

Regards

 

Victor

Lima - Peru




Lima - Peru

Perfect! Thank you so much. Is there a list of commands like this that can be used in Query Editor? I haven't found a good repository that is clear like that. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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