我有一个数据集,如下所示:
Funder Product DueDate Amount
=======================================
Fund1 Prod1 01/oct/2013 $1,500
Fund2 Prod1 01/oct/2013 $1,000
Fund3 Prod1 01/oct/2013 $850
Fund1 Prod2 01/oct/2013 $2,000
Fund2 Prod2 01/oct/2013 $750
Fund1 Prod1 02/oct/2013 $1,500
| | | |
Fund3 Prod2 31/oct/2013 $750
也就是说,很多行都有金额和到期日,某些资助者和产品对类似的到期日进行区分
我需要的是生成一个按创始人/产品分组的报告,使某个创始人/产品的所有到期日期一起出现,然后为下一个创始人/产品所有属于他们的到期日期,等等。
比如这样:
Fund1
Prod1
DueDate Amount
==================
01/oct/2013 $1,500
02/oct/2013 $1,500
03/oct/2013 $2,000
| |
31/oct/2013 $1,750
Prod2
DueDate Amount
==================
01/oct/2013 $2,000
02/oct/2013 $1,500
03/oct/2013 $2,000
| |
31/oct/2013 $1,750
Fund2
Prod1
DueDate Amount
==================
01/oct/2013 $1,000
02/oct/2013 $1,500
03/oct/2013 $2,000
| |
31/oct/2013 $1,750
Prod2
DueDate Amount
==================
01/oct/2013 $750
02/oct/2013 $1,500
03/oct/2013 $2,000
| |
31/oct/2013 $1,750
Fund3
Prod1
DueDate Amount
==================
01/oct/2013 $850
02/oct/2013 $1,500
03/oct/2013 $2,000
| |
31/oct/2013 $1,750
Prod2
DueDate Amount
==================
02/oct/2013 $1,500
03/oct/2013 $2,000
| |
31/oct/2013 $750
到目前为止,我能用 iReport 得到的只是按 Founder / Group 分组,并针对不同的截止日期重复每个组,而不是将每个组中的所有截止日期分组在一起。像这样:
Fund1
Prod1
DueDate Amount
==================
01/oct/2013 $850
Fund1
Prod2
DueDate Amount
==================
01/oct/2013 $850
Fund2
Prod1
DueDate Amount
==================
01/oct/2013 $850
Fund2
Prod2
DueDate Amount
==================
01/oct/2013 $850
Fund3
Prod1
DueDate Amount
==================
01/oct/2013 $850
Fund1
Prod1
DueDate Amount
==================
02/oct/2013 $850
|
etc
有没有办法做到这一点?显然,一切都只是发明的数据,行为是我正在寻找的......