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
NishanthReddy
New Member

EOMONTH Not Working Date/Time fields

Hi Everyone,

With below formula, I've created a column which shows True for all the dates of current quarter.
Current Qtr =
VAR _StartOfQtr = DATE ( YEAR ( TODAY()), FLOOR ( MONTH ( TODAY() ) -1 , 3 ) + 1 , 1 )
VAR _EndOfQtr =CALCULATE( EOMONTH ( _StartOfQtr, 2 ))
RETURN
'Table'[Date] >= _StartOfQtr && 'Table'[Date] <= _EndOfQt

 

But, I dont for some reason. It is not working for the date/time fields. It is not considering Dec 31st 2023 1:00:00AM belong to current quarter. Not only with december last day of every quarter if the date field having time greater tha 1:00:00AM .

 

NishanthReddy_0-1665580246047.png

Can anyone help me how to solve this?

 

Thanks in advance.

1 REPLY 1
v-xiaosun-msft
Community Support
Community Support

Hi @NishanthReddy ,

 

According to your description, I suggest that you can check the "DATE" table you created. In your screenshot, it shows detailed time periods. And when using the general date table, your formula works fine.

vxiaosunmsft_0-1665654108258.png

Please refer to the following link about date with different time periods.

Power BI Time Data Processing Summary - Brief Book (jianshu.com)

 

Best Regards,
Community Support Team _ xiaosun

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.