cost_and_usage_actual_cost_by_resource_group_dashboard_monthly_costcost_and_usage_actual_cost_by_resource_group_dashboard_resource_group_costscost_and_usage_actual_cost_by_resource_group_dashboard_subscriptions_inputcost_and_usage_actual_cost_by_resource_group_dashboard_top_10_resource_groupscost_and_usage_actual_cost_by_resource_group_dashboard_total_costcost_and_usage_actual_cost_by_resource_group_dashboard_total_resource_groupscost_and_usage_actual_cost_by_resource_group_dashboard_total_subscriptionscost_and_usage_actual_cost_by_service_dashboard_monthly_costcost_and_usage_actual_cost_by_service_dashboard_service_costscost_and_usage_actual_cost_by_service_dashboard_subscriptions_inputcost_and_usage_actual_cost_by_service_dashboard_top_10_servicescost_and_usage_actual_cost_by_service_dashboard_total_costcost_and_usage_actual_cost_by_service_dashboard_total_servicescost_and_usage_actual_cost_by_service_dashboard_total_subscriptionscost_and_usage_actual_cost_by_subscription_dashboard_cost_and_usage_actual_cost_by_subscription_detailscost_and_usage_actual_cost_by_subscription_dashboard_monthly_cost_and_usage_actual_cost_by_subscriptioncost_and_usage_actual_cost_by_subscription_dashboard_subscriptions_inputcost_and_usage_actual_cost_by_subscription_dashboard_total_costcost_and_usage_actual_cost_by_subscription_dashboard_total_subscriptionscost_and_usage_actual_cost_by_tag_dashboard_monthly_costcost_and_usage_actual_cost_by_tag_dashboard_subscriptions_inputcost_and_usage_actual_cost_by_tag_dashboard_tag_key_inputcost_and_usage_actual_cost_by_tag_dashboard_tag_value_costscost_and_usage_actual_cost_by_tag_dashboard_top_10_tag_valuescost_and_usage_actual_cost_by_tag_dashboard_total_costcost_and_usage_actual_cost_by_tag_dashboard_total_subscriptionscost_and_usage_actual_overview_dashboard_daily_costcost_and_usage_actual_overview_dashboard_monthly_costcost_and_usage_actual_overview_dashboard_subscriptions_inputcost_and_usage_actual_overview_dashboard_top_10_resource_groupscost_and_usage_actual_overview_dashboard_top_10_resourcescost_and_usage_actual_overview_dashboard_top_10_servicescost_and_usage_actual_overview_dashboard_top_10_subscriptionscost_and_usage_actual_overview_dashboard_total_costcost_and_usage_actual_overview_dashboard_total_subscriptions
Query: cost_and_usage_actual_cost_by_subscription_dashboard_subscriptions_input
Usage
powerpipe query azure_cost_and_usage_insights.query.cost_and_usage_actual_cost_by_subscription_dashboard_subscriptions_inputTailpipe Tables
Tags
SQL
with subscription_ids as (  select    distinct on(subscription_id)    subscription_id ||    case      when subscription_name is not null then ' (' || coalesce(subscription_name, '') || ')'      else ''    end as label,    subscription_id as value  from    azure_cost_and_usage_actual  where    subscription_id is not null and subscription_id != ''    and subscription_name is not null and subscription_name != ''  order by label)select  'All' as label,  'all' as valueunion allselect  label,  valuefrom  subscription_ids;