The SSRS Tanh function is a Mathematical function that returns the trigonometric hyperbolic tangent value of the given angle. The syntax of the Tanh function to return the hyperbolic tangent value of the numeric field is as shown below.
=Tanh(60)
To demonstrate the Tanh function in Reporting Services, we use the Products table below, which has 14 records. The image shows the records in the table report; the result is in an empty column.
SSRS Tanh function Example
For this, right-click the textbox under the Result Header and choose the Expression to open the window below. The Tanh function expression below finds the Hyperbolic tangent value of the Service Grade field or column in the Product table.
=Tanh(Fields!Service_Grade.Value)
Similarly, let me create one more column to the Angle’s right and name it Tanh Orders. The Tanh function expression below finds the Hyperbolic tangent value of the Orders field or column.
=Tanh(Fields!Orders.Value)
Please click the preview tab to see the Tanh report. Please use the Round function to adjust the decimal precisions.