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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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