본문 바로가기
v5 | Data Prep

데이터 프렙 챌린지: International Bank of Awesome Data - Part I

by VizLab 2022. 2. 11.

Resource: Alteryx Weekly Challenge #302

 

Input: 첨부파일

RegionA.csv
0.03MB

Output

  • 필드값 앞뒤에 붙어있는 불필요한 공백 모두 정리
  • Customer ID는 12자리, 필요한 경우 앞에 "0" 추가
  • Bank Account Number는 "6자리-8자리-2자리" 형식
  • Transaction DateTime은 "yyyy-MM-dd hh:mm:ss" 형식

 

Logic

  • Region 생성
  • Customer ID 정리 (Alteryx: PadLeft / Tableau Prep: IF + LEN)
  • Bank Account Number 정리 (Alteryx: Substring / Tableau Prep: MID)
  • Transaction DateTime 생성
  • 불필요한 공백 + 필드명 정리

 

Alteryx

Challenge302.yxzp
0.02MB

 

Tableau Prep

Challenge302.tflx
0.02MB

 

Lessons

  • Alteryx와 Tableau Prep의 편리한점/불편한점을 잘 보여주는 예시
  • 자리수를 맞출 때 Alteryx PadLeft 함수의 강력함 (Customer ID 정제)
  • 날짜시간을 만들 때 번거로운 절차를 거치는 Alteryx에 비해 Tableau Prep은 MAKEDATETIME 함수의 간단한 활용이 인상적 (Transaction DateTime 생성)