Working with expressions
Video tutorials
Use an expression to create a calculated field from one, or multiple fields in a database. You can create a simple expression that concatenates strings by joining several fields or a complex expression that uses mathematical operations, such as logarithms. For expressions generating a decimal field, you can specify precision up to six decimal places. For example, a typical calculated field can display customer orders based on the year in which each order was placed.
To further demonstrate, you can use the following equations to accomplish the listed tasks:
*
[Demo].[Customer].[Title]+[Demo].[Customer].[Surname]
*
STRING([CustomerID])+5+[DaysSinceLastOrder]-1
*
STRING([Demo].[Customer].[Cust_ID]+[DEMO].[Customer].[Household_ID])
*
[Demo].[Customer].[Edats]EQ"Adults">0 or [Demo].[Customer].[Edats]EQ"Joves">0
*
[Demo].[Customer].[Household_ID]=1
This expression returns the value to position 1 in the Household_id field.
*
SWITCH([Demo].[Customer].[Gender])CASE"M":"  MALE",CASE"F":"FEMALE"SWITCHEND
*
If([DEMO].[Order].[OrderDate]>[Demo].[Customer].[DOB],1,0)
To display help for a function, double-click the function. Figure 3-13 shows the help for the AGE function.
Figure 3-13  
How to create an expression
1  
2  
3  
/ \ º ª - accents, dieresis,?, !, *, @, #, &, $, o, ñ
4  
5  
6  
7  
Video tutorials
Creating a simple expression
Comparing a complex expression

Additional Links:

Copyright Actuate Corporation 2013 BIRT Analytics 4.2