-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve "Plants overview now - columna Potencia instantia vs potencia…
… pic" (et/somenergia-jardiner!113) Closes #171 and #172 Merge branch '171-plants-overview-now-columna-potencia-instantia-vs-potencia-pic' into 'main'
- Loading branch information
Showing
2 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
24 changes: 12 additions & 12 deletions
24
dbt_jardiner/models/jardiner/marts/dm_dashboard_overview_instant.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{{ config(materialized="view") }} | ||
|
||
select | ||
overview.plant_name as nom_planta, | ||
overview.province as provincia, | ||
overview.technology as tecnologia, | ||
overview.peak_power_kw as potencia_pic_kw, | ||
overview.nominal_power_kw as potencia_nominal_kw, | ||
overview.irradiance_w_m2_last_registered_at as irradiancia_ts, | ||
round(overview.irradiance_w_m2, 2) as irradiancia_w_m2, | ||
overview.instant_power_plant_kw_registered_at as potencia_inst_ts, | ||
round(overview.instant_power_plant_kw, 2) as potencia_inst_kw, | ||
round(overview.instant_power_plant_kw / overview.peak_power_kw, 2) as potencia_inst_vs_pic, | ||
overview.day as dia, | ||
round((overview.meter_exported_energy_kwh - overview.solargis_meter_expected_energy_kwh) / 1000, 2) as energia_perduda_mwh | ||
overview.plant_name as nom_planta, | ||
overview.province as provincia, | ||
overview.technology as tecnologia, | ||
overview.peak_power_kw as potencia_pic_kw, | ||
overview.nominal_power_kw as potencia_nominal_kw, | ||
overview.irradiance_w_m2_last_registered_at as irradiancia_ts, | ||
round(overview.irradiance_w_m2, 2) as irradiancia_w_m2, | ||
overview.instant_power_plant_kw_registered_at as potencia_inst_ts, | ||
round(overview.instant_power_plant_kw, 2) as potencia_inst_kw, | ||
round(overview.instant_power_plant_kw / overview.nominal_power_kw, 2) as potencia_inst_vs_nominal, | ||
overview.day as dia, | ||
round((overview.meter_exported_energy_kwh - overview.solargis_meter_expected_energy_kwh) / 1000, 2) as energia_perduda_mwh | ||
from {{ ref("int_plants_overview_instant") }} as overview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters