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
Anonymous
Not applicable

Help - Optimise my column please datetime to date

Hi there

 

I have used this method to strip the time off a datetime field. I had to do something about the field because i use this as a join. 

But my query is so slow now! 

And i've isolated the issue down to this calculated column. 

 

Date = FORMAT('Date'[FullDate],"DD-MM-YYYY")


What is a better solution for removing the time element from a datetime field?

1 ACCEPTED SOLUTION
Thim
Resolver V
Resolver V

I usually makes a new column, with this Dax formula.

 

Just Date = DATE(YEAR(Date[Date]);MONTH(Date[Date]);DAY(Date[Date]))

 

I havent experienced this to slow down my repports, so try and see if this will fix your issue. 🙂

View solution in original post

2 REPLIES 2
Thim
Resolver V
Resolver V

I usually makes a new column, with this Dax formula.

 

Just Date = DATE(YEAR(Date[Date]);MONTH(Date[Date]);DAY(Date[Date]))

 

I havent experienced this to slow down my repports, so try and see if this will fix your issue. 🙂

Anonymous
Not applicable

thanks heaps @Thim.  I changed the : to a , and it worked. 

 

 

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.