Crystal 报告 - 删除 2 个数据字段中的重复项

Crystal Reports - Removing duplicates in 2 data fields

我的 Crystal 报告中有 2 个数据字段基于 2 个 xml 文件。


第一个数据字段是 - EXP

TRANSID     EXPID    PAYMENT     MONTH
trans01     exp01    1,000.00   JANUARY
trans02     exp02    2,000.00   JANUARY

第二个数据字段是 - FEE

TRANSID    FEEID    PAYMENT      MONTH
trans03    fee01    3,000.00    JANUARY
trans04    fee02    4,000.00    JANUARY
trans05    fee03    5,000.00    JANUARY

我的预期输出是这样的: (我希望这发生)

For the month of: January

             EXP                                  FEE

TRANSID     EXPID    PAYMENT          TRANSID    FEEID     PAYMENT
trans01     exp01    1,000.00         trans03    fee01    3,000.00
trans02     exp02    2,000.00         trans04    fee02    4,000.00
                                      trans05    fee03    5,000.00

这可能吗?提前致谢!


但输出是这样的:

For the month of: January

             EXP                                  FEE

TRANSID     EXPID    PAYMENT          TRANSID    FEEID     PAYMENT
trans01     exp01    1,000.00         trans03    fee01    3,000.00
trans02     exp02    2,000.00         trans03    fee01    3,000.00
trans01     exp01    1,000.00         trans04    fee02    4,000.00
trans02     exp02    2,000.00         trans04    fee02    4,000.00
trans01     exp01    1,000.00         trans05    fee03    5,000.00
trans02     exp02    2,000.00         trans05    fee03    5,000.00
  1. Insert a Subreport that points to the "Fee" table. Drag and drop the fields you need on the Details Section on this Subreport

  2. Place this Subreport on the Report Header

  3. Go to the Section Expert > Select Report Header > Check 'Underlay following sections"

  4. Place fields you need from the Exp table on the Details Section of the Main Report.