我希望在Apex 5的交互式报告中创建一个运行总计,重新计算报告重新排序的时间。
我已设法使用以下查询获得运行总计
select STOCK_MOVEMENT.SKU as SKU,
STOCK_MOVEMENT.REF as REF,
STOCK_MOVEMENT.CUST as CUST,
STOCK_MOVEMENT.DTE as DTE,
STOCK_MOVEMENT.QTY as QTY,
SUM(QTY) OVER(PARTITION BY SKU ORDER BY DTE RANGE BETWEEN UNBOUNDED PRECEDING AND
CURRENT ROW) AS RUNNING_TOTAL,
STOCK_MOVEMENT.CREF as CREF,
STOCK_MOVEMENT.CUAC as CUAC
from STOCK_MOVEMENT STOCK_MOVEMENT
order by STOCK_MOVEMENT.SKU ASC, STOCK_MOVEMENT.DTE ASC, STOCK_MOVEMENT.CUAC ASC
。 例如,当报表订单更改为客户订单时,运行总计将变得无用。
有什么建议吗?
提前致谢。