I need to create a report with subtotals based upon a certain condition existing. The format is below. The text and sub-total for the warehouse (WH) should ONLY display and calcuate the sub-total if the warehouse exist in that dept. How do I do this?
Dept VEND WH UNITS
17 123 1 2000
17 345 2 5000
17 556 2 2500
17 654 3 1500
WAREHOUSE 1 TOTAL 2000
WAREHOUSE 2 TOTAL 7500
WAREHOUSE 3 TOTAL 1500
DEPT TOTAL 11000
Dept VEND WH UNITS
18 223 1 3000
18 325 2 4000
18 596 2 2500
WAREHOUSE 1 TOTAL 3000
WAREHOUSE 2 TOTAL 6500
DEPT TOTAL 9500
Dept VEND WH UNITS
17 123 1 2000
17 345 2 5000
17 556 2 2500
17 654 3 1500
WAREHOUSE 1 TOTAL 2000
WAREHOUSE 2 TOTAL 7500
WAREHOUSE 3 TOTAL 1500
DEPT TOTAL 11000
Dept VEND WH UNITS
18 223 1 3000
18 325 2 4000
18 596 2 2500
WAREHOUSE 1 TOTAL 3000
WAREHOUSE 2 TOTAL 6500
DEPT TOTAL 9500