Hi all –
I’m working on a production report for a client and I’m running into a challenge with campaign-level summaries.
Context
-
Main data source is a Named Query (MainQueryDetails) that returns all fields I need: Work Order, Campaign, Product, Line, Batch Number, Ingredient, Target, Actual, etc.
-
My grouping hierarchy in the report:
- Work Order
- Campaign
- Product
- Line
- Batch Number
- MainQueryDetails (all data)
- Batch Number
- Line
- Product
- Campaign
- Work Order
Current Behavior
-
Each batch group lists all ingredients and their amounts.
-
A batch group footer calculates per-batch ingredient totals (works fine).
-
The Campaign group footer can show a single aggregated record (total usage for all ingredients combined), but not multiple rows per ingredient.
Goal
After each campaign, I would like a summary table that:
-
Lists each ingredient used in that campaign.
-
Shows the sum of Target and sum of Actual for that ingredient across all batches in the campaign.
What I am trying to accomplish is the highlighted summary of each campaign in the attached mockup. I currently have all the other parts working with a single table group and then grouping previously mentioned.