Date() is to format a number as date string / text, Date#() to interpret a string as date number.
Date#() is used how to interpret the data. For example
date#(‘2013_24_10′,’YYYY_DD_MM’) tells that the first four digits are year, the digits between two ‘_’s are Date, and the last two are Month.
Date() is used to tell how to show the data. For example
date(today(),’YYYY_DD_MM’) returns 2013_24_10
date(today(),’MM/DD/YY’) returns 10/24/13
Combination of both:
date(date#(‘2013_24_10′,’YYYY_DD_MM’),’MM/DD/YYYY’) returns 10/24/2013




![[PowerBI][DAX] – Comment compter le nombre de ligne d’une table ?](https://i2.wp.com/mybicoach.bwabwanet.fr/wp-content/uploads/2020/01/powerbi-dax-countrows-logo-1.png?resize=100%2C70)