Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/google-maps/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Crystal reports Crystal Reports-输出记录的分组_Crystal Reports - Fatal编程技术网

Crystal reports Crystal Reports-输出记录的分组

Crystal reports Crystal Reports-输出记录的分组,crystal-reports,Crystal Reports,我在Oracle中有一个存储过程,它将返回以下内容 以下5列由以下人员排序: (按订单)日期、账户、资产、金额和类型 在Crystal Reports中,我对过程返回的输出进行了分组 基于“日期”、“帐户”和“资产”列 crystal报告的输出如下所示 Date Account Asset Amount Type Date1 Account1 Asset1 Amount1 Buy Date1 Account1 Asset1 Amount1 Sell Date1 Account1 Ass

我在Oracle中有一个存储过程,它将返回以下内容 以下5列由以下人员排序: (按订单)日期、账户、资产、金额和类型

在Crystal Reports中,我对过程返回的输出进行了分组 基于“日期”、“帐户”和“资产”列

crystal报告的输出如下所示

Date  Account  Asset  Amount  Type

Date1 Account1 Asset1 Amount1 Buy
Date1 Account1 Asset1 Amount1 Sell
Date1 Account1 Asset1 Amount2 Buy
Date1 Account1 Asset1 Amount2 Sell

Date2 Account2 Asset2 Amount3 Buy
Date2 Account2 Asset2 Amount4 Sell
Date2 Account2 Asset2 Amount5 Sell

Date3 Account3 Asset3 Amount6 Buy
Date3 Account3 Asset3 Amount6 Sell

Date4 Account4 Asset4 Amount7 Buy
Date4 Account4 Asset4 Amount7 Buy
Date4 Account4 Asset4 Amount8 Sell
问:在水晶中有没有任何可能的方法来分离第一个 仅按分组日期根据列金额对结果进行分组,如下所示, 帐户和资产,以使其不会影响其他输出组。(或)


如果我是你,我会使分组条件成为一个具有正常逻辑的公式,或者使用子组检查特殊逻辑。我们的应用程序使用Crystal生成语句,我们有几个分组,因此我们可以在不同级别进行分离和合计:

  • 组1是客户(用于运行批次)
  • 第2组为有争议状态(因此有争议的费用或坏账单独列出)
  • 第3组是交易(费用和付款)
  • 第4组是个人购买或退款的行项目
我们使用分组汇总表列出每个销售项下的小计和每个客户的总余额


如果将一个组用于日期、帐户和资产,请尝试添加一个新组(菜单“插入-->组”),并选择“金额”作为分组依据。Crystal保持细节部分的完整性。然后,您可以在每个金额组的末尾添加额外的空格,或根据需要插入组小计(右键单击字段并从弹出的“拾取插入-->摘要”)。Crystal允许至少五个分组级别。

除非我遗漏了某些内容,否则您只需更改分组顺序即可:

日期、科目、资产、金额、类型

致:

日期、账户、资产、类型、金额

因此,答案是按金额和类型添加一个组,因为您说过它已经按日期、帐户和资产进行了分组


希望这有帮助。

这个问题需要一个比“Crystal reports”更好的标题
Date  Account  Asset  Amount  Type

Date1 Account1 Asset1 Amount1 Buy
Date1 Account1 Asset1 Amount1 Sell

Date1 Account1 Asset1 Amount2 Buy
Date1 Account1 Asset1 Amount2 Sell

Date2 Account2 Asset2 Amount3 Buy
Date2 Account2 Asset2 Amount4 Sell
Date2 Account2 Asset2 Amount5 Sell

Date3 Account3 Asset3 Amount6 Buy
Date3 Account3 Asset3 Amount6 Sell

Date4 Account4 Asset4 Amount7 Buy
Date4 Account4 Asset4 Amount7 Buy
Date4 Account4 Asset4 Amount8 Sell