SSRS Acos 函数

SSRS Acos 函数是一个数学函数,它返回三角函数反余弦值,即给定余弦数的角度。返回给定余弦数值字段角度的 Acos 反余弦函数的语法如下所示。

=Acos(0.5)
=Acos(Fields!Angle.Value)

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

Source Table

SSRS Acos 函数示例

为此,右键单击“结果”标题下的文本框,然后选择“表达式”以打开下面的窗口。下面的 Acos 函数表达式查找 Products 表中“服务等级”字段或列的反余弦值,即角度。

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

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

SSRS Acos Function to find the arc cosine value report preview