如何从水晶报表中的公式字段中找到最小值 [英] How do I find minimum value from a formula field in crystal report
本文介绍了如何从水晶报表中的公式字段中找到最小值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在水晶报告中找到最小公式字段
How do I find minimum of a formula field in crystal report
推荐答案
您好,
以下是您需要做的事情:
1)在字段#字段上创建一个组
2)使用下面的代码创建一个公式(@Min)并将其放在详细信息部分:
如果{Status} =S则
{SEQ No}
其他
9999999
你可以抑制上面的公式。右键单击字段>格式字段>常用标签>检查抑制
3)选择报告>选择公式>分组并使用此代码:
{状态} =S和
{SEQ No} =最小值({@Min},{< put_your_field>})
请更改根据你的计划价值
希望这会有所帮助。
Hi,
Here's what you need to do:
1) Create a group on the field # field
2) Create a formula (@Min) with the code below and place it on the details section:
if {Status} = "S" then
{SEQ No}
else
9999999
You may suppress the above formula. Right-click the field > Format Field > Common tab > check Suppress
3) Go the option Report > Selection Formulas > Group and use this code:
{Status} = "S" and
{SEQ No} = Minimum ({@Min}, {<put_your_field>})
Pls change the values according to your program
Hope this helps.
这篇关于如何从水晶报表中的公式字段中找到最小值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文