Concept Flow - dbt-utils (surrogate_key, pivot, unpivot)
Start with raw data
Use surrogate_key to create unique IDs
Apply pivot to transform rows into columns
Apply unpivot to transform columns back to rows
Final transformed dataset
This flow shows how raw data is first given unique IDs with surrogate_key, then reshaped wide with pivot, and finally reshaped long with unpivot.