GQL Statement

IF(
  GOAL_IS_SET(total_energy_costs),
  -> {
    DIVIDE(
      PRODUCT(
        SUM(1,DIVIDE(GOAL_USER_VALUE(total_energy_costs),100)),
        QUERY_PRESENT(total_costs)
        ),
      BILLIONS
    )
  },
  nil
)

Result

2015 0.24 ms
nil
euro
2050 0.01 ms
nil
euro

Description

Makes use of the new QUERY_PRESENT function

Characteristics

Groups
Unit euro
File path /app/tmp/etsource/gqueries/output_elements/goals/total_energy_costs/policy_goal_total_energy_costs_target_value.gql

References

Gquery policy_goal_total_energy_costs_reached