Skip to content

Commit

Permalink
Improve change recode specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
wrridgeway committed Oct 21, 2024
1 parent 0f8439d commit f6f5faf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dbt/models/default/default.vw_pin_appeal.sql
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ SELECT
WHEN
reasons.taxyr > '2020' AND TRIM(LOWER(reasons.user104)) = 'decrease'
THEN 'change'
WHEN reasons.taxyr > '2020' THEN TRIM(LOWER(reasons.user104))
WHEN
reasons.taxyr > '2020'
AND TRIM(LOWER(reasons.user104)) IN ('change', 'no change')
THEN TRIM(LOWER(reasons.user104))
END AS change,
reasons.reason_code1,
reascd1.description AS reason_desc1,
Expand Down

0 comments on commit f6f5faf

Please sign in to comment.