# View: dt_project_moments_cluster_groups_140_days

**View Name:** dt_project_moments_cluster_groups_140_days
**Table Source:** `Derived from: Dev_Engineering, Dev_Engineering.Eimpara, Eimpara.Moments_Clusters_Table_Apr_Sept_22_Negative_Sign, Eimpara.Moments_Clusters_Table_Apr_Sept_22_Positive_Sign`
**File Path:** `dt_project_moments_cluster_groups_140_days.view.lkml`

## Overview

- **File Size:** 3183 bytes
- **Lines of Code:** 111
- **Dimensions:** 7
- **Measures:** 1
- **Dimension Groups:** 0
- **Filters:** 0

## Dimensions

| Name | Type |
|------|------|
| `isrc` | string |
| `pred_type` | string |
| `nrmse` | number |
| `sum_forecast_errors` | number |
| `sign` | string |
| `fuzzy_cluster_label` | string |
| `trending_group` | string |

## Measures

| Name | Type |
|------|------|
| `count_isrc` | count_distinct |

## Derived Table

```sql
sql:
    select
*,
case
    when fuzzy_cluster_label = 0 then 'A'
    when fuzzy_cluster_label = 1 then 'B'
    when fuzzy_cluster_label = 2 then 'C'
    when fuzzy_cluster_label = 3 then 'D'
    when fuzzy_cluster_label = 4 then 'E'
    when fuzzy_cluster_label = 5 then 'F'
    when fuzzy_cluster_label = 6 then 'G'
    when fuzzy_cluster_label = 7 then 'H'
    when fuzzy_cluster_label = 8 then 'I'
    when fuzzy_cluster_label = 9 then 'J'
else null
end as trending_group
from dev_engineering.eimpara.MOMENTS_CLUSTERS_TABLE_APR_SEPT_22_POSITIVE_SIGN

union all

select
*,
case
    when fuzzy_cluster_label = 0 then 'K'
    when fuzzy_cluster_label = 1 then 'L'
    when fuzzy_cluster_label = 2 then 'M'
    when fuzzy_cluster_label = 3 then 'N'
    when fuzzy_cluster_label = 4 then 'O'
    when fuzzy_cluster_label = 5 then 'P'
    when fuzzy_cluster_label = 6 then 'Q'
    when fuzzy_cluster_label = 7 then 'R'
    when fuzzy_cluster_label = 8 then 'S'
    when fuzzy_cluster_label = 9 then 'T'
else null
end as trending_group
from dev_engineering.eimpara.MOMENTS_CLUSTERS_TABLE_APR_SEPT_22_NEGATIVE_SIGN;;
```

