OBIEE Training - Functions and Variables
OBIEE Training
Functions and Variables
Ronda Stemach EDM Group July 8 2013
Today's Two Topics
1. Functions
? Manipulate data ? compute and compare
2. Variables
? Store & return value
Functions
Syntax: ? Double-quote around folder &
field names ? Single-quote around string
values ? Comma between arguments ? Parenthesis closing arguments
Left("Job"."Job Code",4)
Filter Function
? Special ? has its own button
Lab 1: Using the Filter Function
Math Functions
Function Name
Return Value
ABS (x) CEILING (x)
Absolute value of the number 'x' Integer value that is Greater than or equal to the number 'x'
FLOOR (x)
Integer value that is Less than or equal to the number 'x'
TRUNCATE (x, y) Truncates value of number 'x' up to 'y' decimal places
ROUND (x, y)
Rounded off value of the number 'x' up to the number 'y' decimal places
Examples
ABS (1) ABS (-1) CEIL (2.83) CEIL (2.49) CEIL (-1.6) FLOOR (2.83) FLOOR (2.49) FLOOR (-1.6) TRUNC (140.234, 2) TRUNC (-54, 1) TRUNC (5.7) TRUNC (142, -1) ROUND (125.456, 1) ROUND (125.456, 0) ROUND (124.456, -1)
Return Value
1 1 3 3 -1 2 2 -2 140.23 54 5 140 125.4 125 120
Lab 2: Math Function
String Functions
Function Name
Return Value
Examples
Return Value
LOWER (string_value)
All the letters in 'string_value' is converted to lowercase. LOWER('Good Morning')
good morning
UPPER (string_value)
All the letters in 'string_value' is converted to uppercase. UPPER('Good Morning')
GOOD MORNING
TRIM (LEADING string_value FROM trim_text) TRIM (TRAILING string_value FROM trim_text) TRIM (BOTH trim_text FROM string_value)
SUBSTRING (string_value FROM m FOR n) LEFT(expr,integer n)
LENGTH (string_value) string || string
All occurrences of 'trim_text' is removed from the left of 'string_value'. All occurrences of 'trim_text' is removed from the right of'string_value' . All occurrences of 'trim_text' from the left and right of 'string_value' ,'trim_text' can also be only one character long . Returns 'n' number of characters from'string_value' starting from the 'm'position. Returns n number of characters from the left side of a string Number of characters in 'string_value'in returned. Concatenates string values
LTRIM ('Good Morning', 'Good) Morning
RTRIM ('Good Morning', ' Morning') TRIM ('o' FROM 'Good Morning')
Good Gd Mrning
SUBSTR ('Good Morning', 6, 7)
Morning
LEFT(`Good Morning',1)
G
LENGTH ('Good Morning')
12
vendor_city || `, ` || vendor_state Eureka, CA 95501
|| ` ` || vendor_postal_cd
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- excel functions and formulas pdf
- marketing functions and roles
- absolute value functions and translations quizlet
- managerial functions and roles
- manager functions and responsibilities
- ms excel functions and formulas
- management roles functions and skills
- functions and function notation
- parent functions and their equations
- algebra parent functions and transformations
- parent functions and transformations worksheet
- quadratic functions and inequalities