Sometimes we need to show the subtotal of each group. Let's create subtotals for each group in our report:
Add the following expression on the cell just right above Qty
:
=Sum(Fields!Qty.Value)
Add the following expression on the next cell to the right (Line Total
):
=Sum(Fields!LineTotal.Value)
Number
for Qty
and Currency
for the Line Total
. You can accomplish this by right-clicking on each cell then select Text Box Properties (Number
).Date
, Sales Order ID
, and Unit Price
, and right-click on it, then select Merge Cells. Add the following expression:="Subtotal for " & (Fields!Product.Value)
This is how the designer looks like after we added the new cells and made afew changes:
3.15.18.198