[Tableau] Year, Month, Day 날짜 합치기

- 1 min

연도, 월, 일 분리되어 있는 날짜 합치기

Sample

Sample을 보면 Year, Month, Day 가 필드가 따로 저장되어 있습니다. 태블로에서 날짜 데이터가 분리되어 있는 것보다 합쳐 있는 것이 편리하기 때문에 이를 간단한 계산식으로 합쳐보겠습니다.

계산된 필드식 만들기

DATEPARSE(형식, 문자열) : 문자열을 ‘yyyy-MM-dd’ 형식의 날짜로 변환.

STR(측정값) : 측정값을 문자열로 반환.

사용자 지정 날짜 형식에 대한 자세한 설명은 아래 링크를 참고

https://help.tableau.com/current/pro/desktop/ko-kr/dates_custom_date_formats.htm

결과

NANHEE
comments powered by Disqus
rss facebook twitter github gitlab youtube mail spotify lastfm instagram linkedin google google-plus pinterest medium vimeo stackoverflow reddit quora quora