在Crystal Report中的一行中显示多行

时间:2012-04-19 03:46:13

标签: crystal-reports

我想基于MemberID在一行中显示多行。见下表:

MemberID .... MemberName ........... ProjectID ....... Taka
1 .................. Repon Hossain .............. 5 .............. 0.500 / -
1 .................. Repon Hossain .............. 6 .............. 0.600 / -
1 .................. Repon Hossain .............. 7 .............. 0.800 / -
2 .................. Rony Ahmed ................. 5 ........... .... 700 / -
2 .................. Rony Ahmed ................. 6 ........... .... 600 / -
2 .................. Rony Ahmed ................. 8 ........... 10,000 / -
3 .................. Shahinur Ra​​hman ......... 6 ........... 12,000 / -
3 .................. Shahinur Ra​​hman ......... 7 ........... 1,000 / -
3 .................. Shahinur Ra​​hman ......... 8 ........... 50,000 / -
< / p>

我想基于使用crystal report的MemberID在一行中显示行。我不想更改sql查询。

会员ID ...会员名称.....每日节省......每周节省......... DPS ....... FDR
 1 ................. Repon Hossain .......... 500 / - ................. ...... 600 / - ................. 800 / - ....... 0 / -
 2 ................. Rony Ahmed .............. 700 / - ............. .......... 600 / - ................... 0 .......... 10,000 / -
 3 ................. Shahinu Rahman ......... 0 .................... ..... 1200 / - ................ 1000 / - .... 50,000 / -

1 个答案:

答案 0 :(得分:0)

假设:

  • 每日节省是ProjectID 5的值;
  • 每周节省是ProjectID 6的值;
  • DPS是ProjectID 7的值;
  • FDR是ProjectID 8的值;

- 为每日储蓄,每周储蓄,DPS和FDR设置公式,类似于:

if {MyTable.ProjectID}=5 then {MyTable.Taka} else 0

(每个公式都有适当的ProjectID值。)

将报告分组到MemberID,隐藏详细信息和组标题行,并将每个新公式的成员ID和成员名称字段以及总和添加到组页脚。< / p>