diff --git a/dbt_jardiner/models/jardiner/marts/dm_dashboard_overview_instant.sql b/dbt_jardiner/models/jardiner/marts/dm_dashboard_overview_instant.sql index 7e78816..394f5cf 100644 --- a/dbt_jardiner/models/jardiner/marts/dm_dashboard_overview_instant.sql +++ b/dbt_jardiner/models/jardiner/marts/dm_dashboard_overview_instant.sql @@ -17,5 +17,5 @@ select round(((overview.meter_exported_energy_kwh - overview.solargis_meter_expected_energy_kwh) / 1000)::numeric, 2) end as energia_perduda_ahir_mwh, round(((overview.meter_exported_energy_kwh - overview.solargis_meter_expected_energy_kwh) / 1000)::numeric, 2) as energia_perduda_mwh, - overview.instant_power_source + overview.instant_power_source as font_potencia_instantania from {{ ref("int_plants_overview_instant") }} as overview diff --git a/dbt_jardiner/models/jardiner/observability/dset/obs_dset_responses__instant_power_comparison.sql b/dbt_jardiner/models/jardiner/observability/dset/obs_dset_responses__instant_power_comparison.sql index c9dfab5..ecfad29 100644 --- a/dbt_jardiner/models/jardiner/observability/dset/obs_dset_responses__instant_power_comparison.sql +++ b/dbt_jardiner/models/jardiner/observability/dset/obs_dset_responses__instant_power_comparison.sql @@ -30,6 +30,18 @@ instant_power_comparison as ( inverter_power using (plant_uuid, ts) ) -select * +select + plant_uuid as uuid_planta, + plant_name as nom_planta, + ts, + inverter_power_kw as potencia_inversor_kw, + inferred_meter_power_kw as potencia_deduida_kw, + delta_power_instant_vs_inferred as diff_deduida_vs_inversor, + num_inverters as num_inversors, + meter_energy_kwh as energia_comptador_kwh, + previous_energy as energia_anterior, + delta_meter_energy_kwh as delta_energia_comptador_kwh, + previous_ts as ts_anterior, + delta_ts as delta_ts from instant_power_comparison order by plant_uuid asc, ts desc