Skip to content

Commit

Permalink
Update reporting_awscostentrylineitem_daily_summary.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
lcouzens authored Jan 15, 2025
1 parent f784a92 commit 3d6a296
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,12 @@ FROM (
sum(lineitem_blendedcost) as blended_cost,
sum(savingsplan_savingsplaneffectivecost) as savingsplan_effective_cost,
sum(
CASE
WHEN lineitem_lineitemtype='SavingsPlanCoveredUsage'
THEN savingsplan_savingsplaneffectivecost
ELSE lineitem_unblendedcost
END
) as calculated_amortized_cost,
CASE
WHEN lineitem_lineitemtype='SavingsPlanCoveredUsage'
THEN savingsplan_savingsplaneffectivecost
ELSE lineitem_unblendedcost
END
) as calculated_amortized_cost,
sum(pricing_publicondemandcost) as public_on_demand_cost,
max(pricing_publicondemandrate) as public_on_demand_rate,
array_agg(DISTINCT lineitem_resourceid) as resource_ids,
Expand Down

0 comments on commit 3d6a296

Please sign in to comment.