Update abandon_rate way of calculation

This commit is contained in:
Anna Saiapina 2024-11-04 08:12:37 +00:00 committed by GCP Dataform
parent 2c99df472d
commit 217dfad22d

View File

@ -78,7 +78,11 @@ select DAY_OF_WEEK,
else timestamp
end TIMESTAMP, -- 2023 timestamps are in PT (and there time changes are on different dates)
TIME_INTERVAL,
ABANDON_RATE,
case
when ABANDON_RATE in ('100.00%', '1')
then 1
else 0
end ABANDON_RATE,
ANI_AREA_CODE,
ANI_COUNTRY,
ANI_COUNTRY_CODE,