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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors