Merged PR 3286: Rename of categories for top losers/winners

# Description

Re-aligned namings with Matt and Alex. This PR just changes the top losers, losers, winners and top winners to major decline, decline, gain and major gain respectively

# Checklist

- [X] The edited models and dependants run properly with production data.
- [X] The edited models are sufficiently documented.
- [X] The edited models contain PK tests, and I've ran and passed them.
- [NA] I have checked for DRY opportunities with other models and docs.
- [NA] I've picked the right materialization for the affected models.

# Other

- [ ] Check if a full-refresh is required after this PR is merged.

Rename of categories for top losers/winners

Related work items: #23170
This commit is contained in:
Oriol Roqué Paniagua 2024-10-22 13:06:58 +00:00
parent 6a90eb30f9
commit f426825c47
3 changed files with 12 additions and 12 deletions

View file

@ -407,15 +407,15 @@ select
-- opinionated
case
when gsc.weighted_avg_growth_score <= -1.0
then 'TOP LOSER'
then 'MAJOR DECLINE'
when gsc.weighted_avg_growth_score > -1.0 and gsc.weighted_avg_growth_score < 0
then 'LOSER'
then 'DECLINE'
when gsc.weighted_avg_growth_score = 0
then 'FLAT'
when gsc.weighted_avg_growth_score > 0 and gsc.weighted_avg_growth_score < 1.0
then 'WINNER'
then 'GAIN'
when gsc.weighted_avg_growth_score >= 1.0
then 'TOP WINNER'
then 'MAJOR GAIN'
else 'UNSET'
end as categorisation_weighted_avg_growth_score
from growth_score_computation gsc

View file

@ -1231,11 +1231,11 @@ models:
- not_null
- accepted_values:
values:
- TOP LOSER
- LOSER
- MAJOR DECLINE
- DECLINE
- FLAT
- WINNER
- TOP WINNER
- GAIN
- MAJOR GAIN
- UNSET
- name: int_monthly_12m_window_contribution_by_deal

View file

@ -1156,9 +1156,9 @@ models:
- not_null
- accepted_values:
values:
- TOP LOSER
- LOSER
- MAJOR DECLINE
- DECLINE
- FLAT
- WINNER
- TOP WINNER
- GAIN
- MAJOR GAIN
- UNSET