I solved it. I just used a subreport. I passed the order number and line number over and then grouped by the length field. I suppressed all sections except the group footer. I left the Group Name in the footer and put a Count of the length field into the GF.
I created a formula called @Roll to use "roll" or "rolls" based on the count:
If Count ({Table.Length},{Table.Length}) = 1
then
"roll"
else
"rolls"
I then added two text fields
containing:
- {Count of Table.Length} {@Roll} @
- yds
and arranged everything like this in the GF:
Text_Field_1 {GroupName}
Text_Field_2so that I get this:
1 roll @ 40
yds 1 roll @ 60
yds 11 rolls @ 80
ydsHopefully this will help someone in the future with a similar need.