SSRS Cosh 函数

SSRS Cosh 函数是一个数学函数,用于返回给定角度的双曲余弦值。用于返回数值字段的双曲余弦值的 Cosh 函数的语法如下所示。

=Cosh(60)

为了在 Reporting Services 中演示 Cosh 函数,我们使用了下面的 Products 表,该表有 14 条记录。图像显示了表报中的记录;结果在一个空列中。

Source Table

SSRS Cosh 函数示例

为此,右键单击 Result Header 下的文本框,然后选择 Expression 打开下面的窗口。下面的 Cosh 函数用于查找 Product 表中 Angle 列的双曲余弦值。

  1. 更多函数
  2. 图表
  3. 表格
  4. 格式化表
  5. SSRS
=Cosh(Fields!Angle.Value)
Cosh Function expression to find the hyperbolic cosine value

同样,我将在 S Grade 的右侧创建另一个新列,并将其命名为 Cosh Grade。下面的表达式中的 Cosh 函数用于查找 Service Grade 字段或列的双曲余弦值。

=Cosh(Fields!Service_Grade.Value)

请单击预览选项卡查看 Cosh 报表。请使用 Round 函数调整小数精度。

SSRS Cosh Function to find the hyperbolic cosine value report preview