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
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
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.