diff --git a/koku/masu/database/sql/openshift/reporting_ocp_vm_summary_p.sql b/koku/masu/database/sql/openshift/reporting_ocp_vm_summary_p.sql index 3bd5c06baf..7ba790185c 100644 --- a/koku/masu/database/sql/openshift/reporting_ocp_vm_summary_p.sql +++ b/koku/masu/database/sql/openshift/reporting_ocp_vm_summary_p.sql @@ -85,5 +85,12 @@ WHERE usage_start >= {{start_date}}::date AND namespace IS DISTINCT FROM 'Platform unallocated' AND namespace IS DISTINCT FROM 'Network unattributed' AND namespace IS DISTINCT FROM 'Storage unattributed' + AND ( + COALESCE(cost_model_cpu_cost, 0) + + COALESCE(cost_model_memory_cost, 0) + + COALESCE(cost_model_volume_cost, 0) + + COALESCE(distributed_cost, 0) + + COALESCE(infrastructure_raw_cost, 0) + + COALESCE(infrastructure_markup_cost, 0)) != 0 GROUP BY cluster_alias, cluster_id, namespace, latest.node_name, vm_name, cost_model_rate_type, latest.labels ;