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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Surm
Helper III
Helper III

Why are DATEADD(), EndOfMonth(), StartOfMonth() not to be used?

Hi,

The attached image is from the well known and respected Jeffrey Wang (Microsoft Power BI Engineering Manager) .
Why is the use of "DateAdd(), EndOfMonth(), StartOfMonth()" wrong? Why is EOMonth() good and EndOfMonth() bad?

Capture+_2020-04-15-16-41-35.png

 

 

 

 

 

 

 

 

 

 

 

 

The URL of JW's presentation can be found below:
https://www.dropbox.com/sh/yhop1c7c8sdod5f/AAC0iTm1206-donIgEC3Ry0Ya?dl=0
(Inside Aug 2017 folder)


1 ACCEPTED SOLUTION
v-lid-msft
Community Support
Community Support

Hi @Surm ,

 

When we use the DateAdd/EndOfMonth/StartOfMonth function, we need  use column inside, but the EOMoth/EDate can accept single datetime value and Today function will only return one value.

 

So In your scenario, we cannot use DateAdd/EndOfMonth/StartOfMonth function with the Today function.


Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @Surm ,

 

When we use the DateAdd/EndOfMonth/StartOfMonth function, we need  use column inside, but the EOMoth/EDate can accept single datetime value and Today function will only return one value.

 

So In your scenario, we cannot use DateAdd/EndOfMonth/StartOfMonth function with the Today function.


Best regards,

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
MFelix
Super User
Super User

Hi @Surm ,

 

Believe that the answer is given on the previous slide of the presentation where you have taken out the image:

 

Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors