How to create a new column converting date to text
问题 I need to create a new column with an IF . If the difference between two dates is more than a month I have to use a text-like "much time" but if it is not I have to show a date. So the date must be converted to a string to use a text column. How can I convert date to text? Fecha_real = IF( DATEDIFF(ventas[fecha_pedido]; ventas[fecha]; month) = 1 ; "much time"; ConvertToTextInSomeWay ventas[fecha] ) 回答1: This is pretty simple with the FORMAT function.. For example, FORMAT(ventas[fecha], "Short