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
sivasrao
Helper III
Helper III

Date_Trunc function

Hi,

What is the equivalent DAX function for Date_Trunc() in SQL?

Or is there any alternate function that we can use the same as Date_Trunc() in Power BI?

 

1 REPLY 1
ValtteriN
Super User
Super User

Hi,

Here is one way to do this in dax:

FORMAT(TRUNC(MAX('Calendar'[Date])),"dd/mm/yyyy")

e.g. 

 

ValtteriN_0-1668688523024.png
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!

My LinkedIn: https://www.linkedin.com/in/n%C3%A4ttiahov-00001/

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.