I'm trying to write an if statement in the control source section of a report. Unless there is an easier way? Example:
A B Cartons Units (column A X Cartons)
12 6 2 24
6 6 2 12
12 6 3 36
16 8 2 36
12 4 2 24
What would be the formula to pull the percent of all As that equal 12 and B
s that equal 6. Basically, I want everything were column A & B equal 12 and 6 and what that percent of units is to the total units. For this example, rows 1 & 3 equal 12/6 which totals to 60 units. Now that I got the 60 units what percent is 60 units to the total which is 132 (add up all the units in the units column).
A B Cartons Units (column A X Cartons)
12 6 2 24
6 6 2 12
12 6 3 36
16 8 2 36
12 4 2 24
What would be the formula to pull the percent of all As that equal 12 and B
s that equal 6. Basically, I want everything were column A & B equal 12 and 6 and what that percent of units is to the total units. For this example, rows 1 & 3 equal 12/6 which totals to 60 units. Now that I got the 60 units what percent is 60 units to the total which is 132 (add up all the units in the units column).