我的报告有4组。按层次结构列出的组是:
member name
plan
status
open/closed
我需要在会员级别一起显示所有详细信息,在详细信息之后我需要显示打开/关闭,状态,计划,成员的总数。
我将尝试概述报告的外观。
Member1
name plan joined_date status open/closed term_date amount_paid amount_due
john plan1 04/02/15 Approved open 10/16/2018 20045.00 1045.00
kate plan1 04/02/15 paid closed 10/16/2018 1080.00 1080.00
charles plan1 04/02/15 paid open 10/16/2018 11956.00 956.00
smith plan2 04/02/15 denied closed 10/16/2018 2500.00 0.00
thomas plan2 04/02/15 approved open 10/16/2018 34590.00 1590.00
Plan1 number of details:3
approved/open number of details:1 20045.00 1045.00
paid/open number of details:1 11956.00 956.00
paid/closed number of details:1 1080.00 1080.00
denied/closed number of details:0 0.00 0.00
Plan2 number of details:2
approved/open number of details:1 34590.00 1590.00
paid/open number of details:0
paid/closed number of details:0
denied/closed number of details:1 2500.00 0.00
total for member1 number of details:5 110,000.00 89,987.60
总计中定义的状态/打开/关闭只有4种变体。但是可以有多个计划和多个成员。
我不能在细节中间提供状态和计划的总计。
答案 0 :(得分:0)