# View: dt_project_moments_fuzzy_cluster_v4

**View Name:** dt_project_moments_fuzzy_cluster_v4
**Table Source:** `Derived from: Dev_Engineering, Dev_Engineering.Eimpara, Eimpara.Moments_Clusters_Table_Apr_Sept_22_Negative_Sign_V4, Eimpara.Moments_Clusters_Table_Apr_Sept_22_Positive_Sign_V4`
**File Path:** `dt_project_moments_fuzzy_cluster_v4.view.lkml`

## Overview

- **File Size:** 2836 bytes
- **Lines of Code:** 106
- **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 |
| `som_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'

else null
end as Trending_Group
from DEV_ENGINEERING.EIMPARA.MOMENTS_CLUSTERS_TABLE_APR_SEPT_22_POSITIVE_SIGN_V4

union all

select
*,
case
    when fuzzy_cluster_label = 0 then 'G'
    when fuzzy_cluster_label = 1 then 'H'
    when fuzzy_cluster_label = 2 then 'I'
    when fuzzy_cluster_label = 3 then 'J'
    when fuzzy_cluster_label = 4 then 'K'
    when fuzzy_cluster_label = 5 then 'L'


else null
end as Trending_Group
from DEV_ENGINEERING.EIMPARA.MOMENTS_CLUSTERS_TABLE_APR_SEPT_22_NEGATIVE_SIGN_V4;;
```

