ฉันกำลังพยายามเขียน Crystal Report ซึ่งมีการจัดกลุ่มผลรวมในลักษณะที่แตกต่างจากรายงานหลัก วิธีเดียวที่ฉันสามารถทำได้จนถึงตอนนี้คือการใช้รายงานย่อยสำหรับผลรวม แต่หมายความว่าต้องกดแหล่งข้อมูลอีกครั้งเพื่อดึงข้อมูลเดิม ซึ่งดูเหมือนไร้สาระ นี่เป็นตัวอย่างง่ายๆ:
date name earnings source location
-----------------------------------------------------------
12-AUG-2008 Tom $50.00 washing cars uptown
12-AUG-2008 Dick $100.00 washing cars downtown { main report }
12-AUG-2008 Harry $75.00 mowing lawns around town
total earnings for washing cars: $150.00 { subreport }
total earnings for mowing lawns: $75.00
date name earnings source location
-----------------------------------------------------------
13-AUG-2008 John $95.00 dog walking downtown
13-AUG-2008 Jane $105.00 washing cars around town { main report }
13-AUG-2008 Dave $65.00 mowing lawns around town
total earnings for dog walking: $95.00
total earnings for washing cars: $105.00 { subreport }
total earnings for mowing lawns: $65.00
ในตัวอย่างนี้ รายงานหลักจะถูกจัดกลุ่มตาม 'วันที่' แต่ผลรวมจะถูกจัดกลุ่มเพิ่มเติมตาม 'แหล่งที่มา' ฉันได้ค้นหาตัวอย่างของการใช้ผลรวมสะสมแล้ว แต่พวกเขาไม่ได้ทำสิ่งที่ฉันต้องการจริงๆ ไม่มีวิธีจัดเก็บชุดผลลัพธ์และมีทั้งรายงานหลักและรายงานย่อยอ้างอิงข้อมูลเดียวกันไม่ใช่หรือ?