The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have a date folumn with format YYYYMMDD. I tried to change its format to dd/mm/yyyy by creating new column using the dax formula:
If your column is type text, you can do it in the query editor with a custom column with this expression.
= Date.ToText(Date.From([Date]), "dd/MM/yyyy")
Pat
@kzielinska , try like
Date if blank = IF(ISBLANK([column]),blank() ,DATE(LEFT([column],4), MID([column], 5, 2), RIGHT([column], 2)) )
I get this error: An argument of function 'DATE' has the wrong data type or the result is too large or too small.