We’re building a capital program dashboard in QuickSight and we’re running into an aggregation issue.
Goal: In a table visual at the project level, we need to show:
-
Fund
-
Project
-
Projected Budget (from a cashflow table; aggregated by cashflow_pk; monthly grain)
-
Actual Cost (from a budget/actuals table; aggregated by budgetline_id; monthly grain)
-
Total Cost = Projected Budget + Actual Cost
Problem: The two measures (Projected Budget and Actual Cost) come from different tables, are at a monthly grain, and roll up using different primary keys. When we try to create a single “Total Cost” field, QuickSight throws aggregation errors.
What we tried:
-
A calculated field using sumOver() - results in an error
-
A calculated field that directly adds the two measures - error stating you can’t add values with different aggregations
Has anyone successfully handled this pattern (two measures from different datasets/keys) to produce a single sum metric at the project-level table?