简体   繁体   English

Crystal Reports - 绘制相互之间的运行总计

[英]Crystal Reports - Plot running totals against each other

I have two rows of running totals in my report.我的报告中有两行运行总计。

I would like to plot these on a chart against each other with the first row of running totals as bars and the second row as a line across the top.我想将它们绘制在图表上,第一行运行总计作为条形,第二行作为跨越顶部的线。

There are about 20 individual running totals in each row.每行大约有 20 个单独的运行总数。 The running totals are based off formulas fields in the detail section of the report so I can't really say as part of the Chart Criteria 'On Change of Field X'.运行总计基于报告详细信息部分中的公式字段,因此我不能真正将其作为图表标准“字段 X 更改”的一部分。

I just want to use the values in the running totals as is.我只想按原样使用运行总计中的值。

I'm wondering how to achieve this?我想知道如何实现这一目标?

From past experience what I have done to get these results is calculate my running totals through my stored procedure/view enabling me to simply select them in the chart expert.根据过去的经验,我为获得这些结果所做的是通过我的存储过程/视图计算我的运行总数,使我能够在图表专家中简单地选择它们。

As far as I'm aware there is only two ways to achieve what you need:据我所知,只有两种方法可以实现您的需求:

  1. Sum running totals manually using SQL (as mentioned before)使用 SQL 手动汇总运行总数(如前所述)
  2. Sum running totals using a formula field.使用公式字段对运行总计求和。

I'm sorry it's not the answer you may have hoped for.很抱歉,这不是您所希望的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM