기술 자료

How to Calculate the Date of the End of the Month


게시 날짜: 20 Dec 2023
마지막 수정 날짜: 20 Dec 2023

질문

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

환경

  • Tableau Desktop 2022.3+

답변

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]))))
이 문서로 문제가 해결되었습니까?