首页 > 解决方案 > Crystal Reports 报表页脚显示公式的最高值

问题描述

我试图展示四个地点迟到或准时。详细地说,我正在评估时间

if ({Location} = '1' and {#RTotal0} = 2 and {@Time Vs APP} <= -9 and {@Time Vs APP} <= -29) then 'Running a little behind ' else
if ({Location} = '1' and {#RTotal0} = 2 and {@Time Vs APP} <= -30 ) then 'Running Behind ' else
if ({Location} = '1' and {#RTotal0} = 2 and {@Time Vs APP} <= -45 ) then 'Please Check with Staff ' else 'On Time'

我已经放置了 4 个单独的公式来评估每个位置,在评估中我只查看 2 的运行总 ID

{#RTotal0} = 2

这个想法是在报告页脚中显示 id 2 的运行总数是多少,但我只得到 id 1 的结果作为它的第一个关于如何{#RTotal0} = 2 的状态的任何想法?谢谢

报告:

在此处输入图像描述

公式:

在此处输入图像描述

标签: crystal-reports

解决方案


推荐阅读