Posts

Showing posts from January, 2019

Sample SSRS Expression

Expressions are used frequently in Reporting Services paginated reports to control content and report appearance. Expressions are written in Microsoft Visual Basic, and can use built-in functions, custom code, report and group variables, and user-defined variables. Expressions begin with an equal sign (=). Functions Many expressions in a report contain functions. You can format data, apply logic, and access report metadata using these functions. You can write expressions that use functions from the Microsoft Visual Basic run-time library, and from the  Convert  and  Math  namespaces. You can add references to functions from other assemblies or custom code. You can also use classes from the Microsoft .NET Framework, including  System.Text.RegularExpressions .   Math Functions 1. The  Round  function is useful to round numbers to the nearest integer. The following expression rounds a 1.3 to 1: = Round(1.3)   You can also write an expression to round a value to a mult