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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors