BASE DE CONOCIMIENTO

How to Calculate the Date of the End of the Month


Publicado: 20 Dec 2023
Fecha de la última modificación: 20 Dec 2023

Pregunta

How to get the date of the end of a month.
 

Entorno

  • Tableau Desktop 2022.3+

Respuesta

Because there is no native date function to determine the end of the month from a date field, create a date calculation as instructed below to obtain the end of the month. 

DATEADD('day',-1,(DATEADD('month',1,DATETRUNC('month',[Order Date]))))
¿Fue de ayuda este artículo para resolver el problema?