【问题标题】:Jasper Reports - How to create crosstab derived measure?Jasper Reports - 如何创建交叉表派生度量?
【发布时间】:2013-11-11 21:13:09
【问题描述】:

我需要在 jasperreport 交叉表中创建一个派生列,例如

Region   | Type 01 | Type 02 | Derived Measure
zone 1   | Sum     | Sum     | Type 01 / Type 02 ( only in zone 1)
zone 2   | Sum     | Sum     | Type 01 / Type 02 ( only in zone 2)

有什么想法吗?

【问题讨论】:

  • Rodrigo,您希望这仅由交叉表元素执行吗?还是您愿意接受其他想法?
  • 我实际上是使用主带和细节带让它工作的,但是结果我不得不写很多 xml(ireport 对我不起作用)。我认为这个功能非常有用,但我找不到任何关于如何实现它的线索。您有其他解决方案吗?

标签: jasper-reports ireport crosstab measure


【解决方案1】:

交叉选项卡填充报表执行时的数据。因此,不可能在已经计算的填充值上找到更多计算,而是需要在 SQL 查询中定义 Type01/Type02 以便您可以进行其他测量。

谢谢, 萨达卡

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-04-20
    • 1970-01-01
    • 2016-04-02
    • 1970-01-01
    • 2018-09-05
    • 1970-01-01
    相关资源
    最近更新 更多