Parameters Crystal Reports-是否可以通过参数将运算符传递给报表?

Parameters Crystal Reports-是否可以通过参数将运算符传递给报表?,parameters,crystal-reports,report,operator-keyword,Parameters,Crystal Reports,Report,Operator Keyword,有点困惑,我似乎找不到解决办法。 我一直在玩Crystal Reports 2011(也在v10中)中的参数,想知道是否可以通过参数将运算符传递给报表 例如 我创建了一个报告,其中显示了各自组中的帐号计数 组名…计数 A组……5 B组……10 C组…………20 我有一个名为“Val”的参数,它与计数有关,还有一个名为“Operator”的参数,它包含不同的运算符(>,),据我所知,您只能通过一个长的select记录公式来实现这一点,例如: Select Case {@Operator} Cas

有点困惑,我似乎找不到解决办法。 我一直在玩Crystal Reports 2011(也在v10中)中的参数,想知道是否可以通过参数将运算符传递给报表

例如

我创建了一个报告,其中显示了各自组中的帐号计数

组名…计数

A组……5

B组……10

C组…………20


我有一个名为“Val”的参数,它与计数有关,还有一个名为“Operator”的参数,它包含不同的运算符(>,),据我所知,您只能通过一个长的select记录公式来实现这一点,例如:

Select Case {@Operator}

Case "=" :
    (If (DistinctCount ({customers.account} = 10)) then true else false)
Case ">" :
    (If (DistinctCount ({customers.account} > 10)) then true else false)
Case "<" : 
    (If (DistinctCount ({customers.account} < 10)) then true else false)
Case ">=" :
    (If (DistinctCount ({customers.account} >= 10)) then true else false)
Case "<=" :
    (If (DistinctCount ({customers.account} <= 10)) then true else false)
Default : false
选择大小写{@Operator}
案例“=”:
(如果(DistinctCount({customers.account}=10))则为true,否则为false)
案例“>”:
(如果(DistinctCount({customers.account}>10))则为true,否则为false)
案例“=”:
(如果(DistinctCount({customers.account}>=10))则为true,否则为false)

Case“据我所知,您只能通过一个长的select记录公式来实现这一点,例如:

Select Case {@Operator}

Case "=" :
    (If (DistinctCount ({customers.account} = 10)) then true else false)
Case ">" :
    (If (DistinctCount ({customers.account} > 10)) then true else false)
Case "<" : 
    (If (DistinctCount ({customers.account} < 10)) then true else false)
Case ">=" :
    (If (DistinctCount ({customers.account} >= 10)) then true else false)
Case "<=" :
    (If (DistinctCount ({customers.account} <= 10)) then true else false)
Default : false
选择大小写{@Operator}
案例“=”:
(如果(DistinctCount({customers.account}=10))则为true,否则为false)
案例“>”:
(如果(DistinctCount({customers.account}>10))则为true,否则为false)
案例“=”:
(如果(DistinctCount({customers.account}>=10))则为true,否则为false)
案例”
Select Case {@Operator}

Case "=" :
    (If (DistinctCount ({customers.account} = 10)) then true else false)
Case ">" :
    (If (DistinctCount ({customers.account} > 10)) then true else false)
Case "<" : 
    (If (DistinctCount ({customers.account} < 10)) then true else false)
Case ">=" :
    (If (DistinctCount ({customers.account} >= 10)) then true else false)
Case "<=" :
    (If (DistinctCount ({customers.account} <= 10)) then true else false)
Default : false