Вы находитесь на странице: 1из 282

,

SAP
BusinessObjects Web Intelligence

SAP BusinessObjects XI 3.1 Service Pack 5

2011 SAP AG. .SAP, R/3, SAP NetWeaver, Duet,


PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork
SAP,
,
SAP AG . Business Objects
Business Objects, BusinessObjects, Crystal Reports, Crystal Decisions, Web
Intelligence, Xcelsius
Business Objects,
Business
Objects Software Ltd. Business Objects Software Ltd. SAP Group.
Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere
Sybase,

Sybase, Inc. Sybase Inc.
SAP Group.
. ,
, .
.
.
SAP AG
("SAP Group") ,
- . SAP Group
. , ,
SAP Group
, .
, ,
.
2011-12-01

.......................................................................10

..............................................................................................11
.....................12
................................................................................14
............................................................14
.............................................................................14
..............................................................................15
Web Intelligence..............................21
3

25

................................26
................................................................................27
.............................................................................28
...................................................30
..........................31
......................33
-.......................................33
..................................................34
..............................................36

..............................................................................................37
..............................................37

, SAP BusinessObjects Web Intelligence

Web
Intelligence...........................................................................................41
4

53

..................................................54
...................................54
Web Intelligence
.........................................................................................55
.........................................56
SQL.....................................................57
UNION...........................................57
.....................................................60
, .....60
..............................................60
......................................................61
............61
..........................62
OR......................62
5

, Web Intelligence

65

Web Intelligence.........................................................................66
......................................................................66
.........................................................................98
..................................................................118
Data Provider functions......................................................................134
..........................................................................149
.........................................................................158
...........................................................................168
...............................................................................191
Web Intelligence..................................213
............................................................214

, SAP BusinessObjects Web Intelligence

........................................................................214
.....................................................................215
..................................................218
............................................227
Web
Intelligence...............................................................................................232
.....................................................................232
""....................................................................234
""..........................................................235
Report....................................................................236
"".................................................................238
Web Intelligence..............239
6

Web Intelligence

243

.....244
#COMPUTATION...............................................................................244
#CONTEXT........................................................................................244
#DATASYNC......................................................................................245
#DIV/0................................................................................................245
#EXTERNAL......................................................................................246
#INCOMPATIBLE...............................................................................246
#MULTIVALUE...................................................................................246
#OVERFLOW.....................................................................................247
#PARTIALRESULT.............................................................................247
#RANK...............................................................................................248
#RECURSIVE....................................................................................248
#SECURITY.......................................................................................249
#SYNTAX...........................................................................................249
#TOREFRESH...................................................................................249
#UNAVAILABLE.................................................................................250
#ERROR............................................................................................250

, SAP BusinessObjects Web Intelligence

Aggregation .................250
7

Web Intelligence

251

Previous............................252
RelativeValue....................252
RelativeValue...................................254
..........................................................256
..............................................................258
........................................................261
RelativeValue -.............263

265

269

, SAP BusinessObjects Web Intelligence

, SAP
BusinessObjects Web Intelligence
Web Intelligence.
Web
Intelligence.
,
Web Intelligence.
, , Web Intelligence
(, ), .
:
SAP BusinessObjects
Web Intelligence, Java
SAP BusinessObjects Web Intelligence
SAP BusinessObjects Web Intelligence Rich Client.

Web Intelligence . SAP
BusinessObjects Web Intelligence: .

, SAP BusinessObjects Web Intelligence


Web Intelligence.
,
Web Intelligence
.



Web Intelligence
:

10

Average

, SAP BusinessObjects Web Intelligence


. .

:



.

.



.


.
, Web Intelligence
.





, Web Intelligence.
,
, Web Intelligence .
, ,
.

, SAP BusinessObjects Web Intelligence

11

,
, .
,
.
:

" " "


", .
[
]/[ ]
,
.
.

, ,
.
, ,
.

, .
"".

"",
.
: ,

.

. Web Intelligence Var(),
,

12

, SAP BusinessObjects Web Intelligence

, ,
. ,
:

;

, ;
;
.

, , ,
.
,
:
Sum((([Quantity sold] - Average([Quantity sold] ForEach
[Quarter]) In Report)*([Quantity sold] Average([Quantity sold] ForEach [Quarter]) In Report))
In [Quarter])/(Count ([Quantity sold] ForEach
[Quarter]) - 1)
, .
,
Sum ([Difference Squared])/[Number of Observations] 1)
.
,
,
. ,
,
.
, Difference Squared,
, , Average Sold.
Difference Squared
Average sold,
.

, SAP BusinessObjects Web Intelligence

13


,
[ ]/[ ].
, , .

.
, Sum
. Sum([ ])
. "
", "
".
.

Web Intelligence
Web Intelligence


"=".
, . ,
Average([]) =Average([]).
" ?" =" ?"
,
"+". ,
" :",
: =" : " +
Average([])
,
.


, ,

14

, SAP BusinessObjects Web Intelligence

. ,
.
, Sum
( , )
( ).
Abs:
num Abs(number)
, Abs

.
.


:
UserResponse

.
,
. ,
.
, .
eFashion, "
", :
"Quarterly Revenues for " + UserResponse(
"eFashion";"Choose a State")
:

, SAP BusinessObjects Web Intelligence

15

:
Percentage

Web Intelligenc Percentage


.

. ,
.
([ ]).

16

, SAP BusinessObjects Web Intelligence


. ;
,
.
,
.

" " ,
, .
Percentage
.

, SAP BusinessObjects Web Intelligence

17

:
Sum

,
Sum,
Percentage.
, ;
, [ ]/Sum([ ])

.
" "
:
[Sales revenue]/(Sum([Sales revenue] In Report))
" " :
[Sales revenue]/(Sum([Sales revenue] In Section))

18

, SAP BusinessObjects Web Intelligence

Report Section
, Sum
.
.


.
.
Web Intelligence Var(),
,
, ,
. ,
:

;

, ;
;
.

, , ,
.

, SAP BusinessObjects Web Intelligence

19

,
:
Sum((([Quantity sold] - Average([Quantity sold] ForEach
[Quarter]) In Report)*([Quantity sold] Average([Quantity sold] ForEach [Quarter]) In Report))
In [Quarter])/(Count ([Quantity sold] ForEach [Quarter])
- 1)
, .

.

. :
;
(
);
,
;
,

.

20

Average Sold

Average([Quantity Sold] In ([Quarter]))


In Report

Number of Observations

Count([Quantity Sold] In ([Quarter])) In


Report

Difference Squared

Power(([Quantity sold] [Average


Sold]);2)

Sum([Difference Squared] In
([Quarter]))/([Number of Observations]
1)

, SAP BusinessObjects Web Intelligence


Sum ([Difference Squared])/[Number of Observations] - 1)
.
,
,
. ,
,
.
, Difference Squared,
, , Average Sold.
Difference Squared
Average sold,
.

Web Intelligence
.
, , ,
.


,
. (+), (-),
(*), (/),
. [ ]
[ ]
.
:

"+"
. ,
. , "" + ""
" ".

, SAP BusinessObjects Web Intelligence

21

>

<

>=

<=

<>

If, :
If [Revenue]>10000 Then "High" Else "Low"
"" ,
10000, ""
.


Web Intelligence
: And, Or, Not, Between Inlist.
,
.



. ,
.

22

, SAP BusinessObjects Web Intelligence


Web Intelligence
. , Previous
Self.
: ) (. ,
,
;.

, SAP BusinessObjects Web Intelligence

23

24

, SAP BusinessObjects Web Intelligence

, ,
. Web Intelligence ,
, , ,
.
.

-,
. ,
. , ,
. ,
.
,
. : . ,
.


. , ,
2005 .
:
,

,
:

26

, SAP BusinessObjects Web Intelligence


,
.

, .
( ),
.
:

""
"" "" .

"", ""

,
,
(,
).
:
Sum ([Revenue] In ([Year]))
Sum ([Revenue] In ([Year];[Customer]))
,
( Sum),
.

, SAP BusinessObjects Web Intelligence

27


,
.
:

,
, .

,
? ,
.
.
Min ([Revenue]) In ([Year])

28

, SAP BusinessObjects Web Intelligence


, .
Web Intelligence
.
,
.

, " "
,
.
,
, (, ) .
, Web Intelligence
, .
,
.
Min ([Sales Revenue] In([Year];[Quarter])) In ([Year])
, Web Intelligence "
,
"?
,
" "?
" ". ,

, SAP BusinessObjects Web Intelligence

29

.
/
/,
"/".

, , Web Intelligence
.
, ,
, , .
.
Web Intelligence ,
, .
. ,
,
. .
:


. ,
. .

30

2005

: 8000

1000

3000

4000

, SAP BusinessObjects Web Intelligence

8000

: 8000

, ,
.

20000

8000

1000, 3000, 4000

8000


, , ,
. .

, SAP BusinessObjects Web Intelligence

31

...


...


...

,

.

-
- .
.

, .

32

, SAP BusinessObjects Web Intelligence

, 90
. ,
, .
,
.

-
- ,
.
-.
-
...
...


...

,
.

-
.
.

,
.


VBody

,
.

, SAP BusinessObjects Web Intelligence

33

-
...
...


...


HBody

,
.

VFooter

- , .

.

HFooter

- , .

.

: -


-.


,
. :

34

, SAP BusinessObjects Web Intelligence

-
...
...

,
.


...
,
.


-.

, SAP BusinessObjects Web Intelligence

35


,
. :
-
...
...


...

,
.

,
.

36

, SAP BusinessObjects Web Intelligence

,
.
.



.
:

In

ForEach

ForAll

ForAll ForEach ,
.

ForAll ForEach,
In.

In Context
In Context .

, SAP BusinessObjects Web Intelligence

37

: In Context

, ""
" ".
"", . ,

.
:

"
" ,
"":

38

, SAP BusinessObjects Web Intelligence

" "
. , 4
2002 , , "
" 2002 4.
In, "
"
Max ([Sales Revenue] In ([Year];[Quarter])) In ([Year])
Web Intelligence
"/",
.
:
"",
.

ForEach
ForEach .
: ForEach


, "",
:

, SAP BusinessObjects Web Intelligence

39

2001

8 096 123,60

2 660 699,50

2002

13 232 246,00

4 186 120,00

2003

15 059 142,80

4 006 717,50

" "
, ForEach:
Max ([Sales Revenue] In ([Year];[Quarter])) In ([Year])
"ForEach"
:
Max ([Sales Revenue] ForEach ([Quarter])) In ([Year])
: ""
. "ForEach"
"" ,
([];[]).

ForAll
ForAll .
: ForAll

, , ,
,
, :

40

, SAP BusinessObjects Web Intelligence


(); (; ).
, ForAll ([]),
:
Sum([Sales Revenue] ForAll ([Quarter]))
,
"In".
:
Sum([Sales Revenue] In ([Year]))
,
, .


Web Intelligence

,
.
;

, SAP BusinessObjects Web Intelligence

41

,
.
: ,
, , .

Report
,
Report :
...

...

(
)

( ,
-
)

: Report

, .
" ",
.

42

, SAP BusinessObjects Web Intelligence

" ": Sum([ ]) In


Report. Report
" ",

([];[]).

""
,
"" :
...

...

(
)

( ,
-
)

, SAP BusinessObjects Web Intelligence

43

: ""

"", "" " ".

"". "
" :
Sum ([Sales Revenue]) In Section
" " 2001
, "".
""
" ",
([];[]).

""
,
""
:
...

...

(
)

( ,
-
)

44

, SAP BusinessObjects Web Intelligence

...

...

: ""

, .

"". "
" :
Sum ([Sales Revenue]) In Break
""
" ",
([];[]).


,
, ;
,
. ,
, .
...

...

,
,

, SAP BusinessObjects Web Intelligence

45

...

...

(
)

,
,

( ,
-
)

, .
"".
.

46

, SAP BusinessObjects Web Intelligence

" " .
Average([Sales revenue] In Section)
"
".
Average ([Sales revenue]) In Block
,
.

""
,
"" :
...

...

(
)

( ,
-
)

: ""

"", "" " "


"". ,
"", "".

, SAP BusinessObjects Web Intelligence

47

2001

2 660 700

2 660 699,5

2 279 003

2 279 003

1 367 841

1 367 840,7

1 788 580

1 788 580,4

2001

8 096 123,6

""
Sum ([Sales Revenue]) In Body
"" " " ,
"" .
"", ""
" ".
,
.



. (
In, ForEach ForAll)
, .
.
: Report

"", ""
" ".
, ,
,
.

48

, SAP BusinessObjects Web Intelligence

" "
.
([Sales revenue]/(Sum([Sales revenue]) In Report)) *
100
Report ,
.
([Sales revenue]/Sum([Sales revenue] ForAll
([Year];[Quarter]))) * 100
Web Intelligence ""
"" ; ,
, .
,
.
ForAl,
Report.
, "" ?
,
Report, ,
, "" "",
.

, SAP BusinessObjects Web Intelligence

49

? .
Sum ([Sales Revenue] ForAll ([Year];[Quarter))

50

, SAP BusinessObjects Web Intelligence

"" ""
, .
"",
"" "" , ""
.
"" . ,
, "" 1,
" 1s".
, "" 2,
" 2s".
.

, SAP BusinessObjects Web Intelligence

51

52

, SAP BusinessObjects Web Intelligence


,
( OLAP),
Web Intelligence, Web Intelligence.
,
, Web Intelligence.
Web Intelligence
,
.
.
Web Intelligence .
, ,
(Max, Min,
Count, Sum, Average), Web Intelligence
. ,
, [] []
[] ( ), Web Intelligence
, .
, Web Intelligence

.
Web Intelligence
.



,
. Web Intelligence
, SQL
,
.

54

, SAP BusinessObjects Web Intelligence

[], [], []
[]. ,

:

(, , )
(, )
()
(, )
()
(, )
()
Web Intelligence
UNION . UNION,
Web Intelligence .
Web Intelligence
, ,
.

Web Intelligence

,
, Web Intelligence ,
,
. Web Intelligence
SQL-.
, , [],
[] [] [], Web Intelligence
(, , )
SQL.
SQL. Web Intelligence
.

, SAP BusinessObjects Web Intelligence

55

[] Web Intelligence
(, ),
. SQL-,
Web Intelligence #TOREFRESH [].
Web Intelligence #TOREFRESH
.
[]
(, ) . Web Intelligence
SQL-
.
Web Intelligence
SQL-, ,
, .
Web Intelligence
. Web Intelligence
#UNAVAILABLE .

Web Intelligence
, ,
. Web intelligence

.
:

[] [].
[] [].
Web Intelligence ()
[] [] .

56

, SAP BusinessObjects Web Intelligence


SQL

SQL
UNION

GROUPING SETS. Web Intelligence
UNION,
GROUPING SETS.
: ,
UNION

,
[], [], [] [].
:
, .
,
Web Intelligence .


: , , . SQL-
, UNION
SQL .
[] , Web Intelligence
(, )
( #TOREFRESH).
SQL :
SELECT
SELECT
0 AS GID,
country.country_name,
region.region_name,
NULL,
sum(city.revenue)
FROM
country,
region,
city
WHERE

, SAP BusinessObjects Web Intelligence

57


SQL

( country.country_id=region.country_id
AND ( region.region_id=city.region_id
GROUP BY
country.country_name,
region.region_name
UNION
SELECT
1 AS GID,
country.country_name,
region.region_name,
city.city_name,
sum(city.revenue)
FROM
country,
region,
city
WHERE
( country.country_id=region.country_id
AND ( region.region_id=city.region_id
GROUP BY
country.country_name,
region.region_name,
city.city_name

)
)

)
)

SELECT
( GID).
, ,
(SELECT ''), SELECT
, UNION,
.
, [] [], ,
Web Intelligence ().
SQL
:
SELECT
0 AS GID,
country.country_name,
region.region_name,
NULL,
sum(city.revenue)
FROM
country,
region,
city

58

, SAP BusinessObjects Web Intelligence


SQL

WHERE
( country.country_id=region.country_id
AND ( region.region_id=city.region_id
GROUP BY
country.country_name,
region.region_name
UNION
SELECT
1 AS GID,
country.country_name,
NULL,
NULL,
sum(city.revenue)
FROM
country,
city,
region
WHERE
( country.country_id=region.country_id
AND ( region.region_id=city.region_id
GROUP BY
country.country_name
UNION
SELECT
2 AS GID,
country.country_name,
region.region_name,
city.city_name,
sum(city.revenue)
FROM
country,
region,
city
WHERE
( country.country_id=region.country_id
AND ( region.region_id=city.region_id
GROUP BY
country.country_name,
region.region_name,
city.city_name

)
)

)
)

)
)

, SAP BusinessObjects Web Intelligence

59


,


,
, , Web Intelligence
. Web
Intelligence .
, , Semester,
If [Quarter] = "Q1" or [Quarter] = "Q2" Then "H1" Else
"H2"

:

H1

#UNAVAILABLE

H2

#UNAVAILABLE


Web Intelligence
, ,
, ,
.
, :

60

, SAP BusinessObjects Web Intelligence

10 000

15 000

14 000

12000


[Revenue] ForAll ([Region])
Web Intelligence #TOREFRESH,
().
. Web
Intelligence ()
.

,
,
, Web Intelligence
#UNAVAILABLE.
, Web Intelligence
.
.
,
. Web intelligence
.

, SAP BusinessObjects Web Intelligence

61

[] []
[]. [] [] .
, []
"-" "-", Web Intelligence
#UNAVAILABLE [].

, Web Intelligence
, ,
. ,
, .
: ,

[] []. [],
Web Intelligence [], []
[] .
Web Intelligence (,
) , ,
,
. Web Intelligence
,
.


OR
OR (),
,
#UNAVAILBLE .

62

, SAP BusinessObjects Web Intelligence

[] = "" [] = ""
#UNAVAILABLE ,
[], []
.
[] = "" [] = 2008
#UNAVAILABLE ,
[] [], [] []
.

, SAP BusinessObjects Web Intelligence

63

64

, SAP BusinessObjects Web Intelligence

,
Web
Intelligence

, Web Intelligence
Web Intelligence

Web Intelligence
Web Intelligence :

(,
)

True False


Average

66

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

num Average(measure[;IncludeEmpty])

IncludeEmpty -

( )

Average
.

IncludeEmpty. ,
() .

[ ] 41569, 30500,
40000 50138, Average([ ])
405552.
.

IncludeEmpty

, SAP BusinessObjects Web Intelligence

67

, Web Intelligence
Web Intelligence

Count

integer
Count(dimension|measure[;IncludeEmpty][;Distinct|All])

dm
i enso
inm
| easure

IncludeEmpty

Distinct|All (
) - ( )

68


Count.

IncludeEmpty.
.

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Distinct/All .
, :
Distinct All .

Count("") 1
Count([City];Distinct) 5,
5 , 5 - .
Count([City];All) 10, 10
, .
Count ([City];IncludeEmpty) 6, 5
.
.

IncludeEmpty
Distinct/All

First

input_type First(|)

, SAP BusinessObjects Web Intelligence

69

, Web Intelligence
Web Intelligence

dimension|measure

First
.
First
.

First([
]) [] .

num
Interpolation(measure[;PointToPoint|Linear][;NotOnBreak][;Row|Col])

70

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

PoniT
toPoniL
|tniear

PointToPoint (PointToPoint

Linear
)

NotOnBreak -
-
.

Row|Col - -

Interpolation
,
.

.


f(x) = ax + b,
,
.

f(x) = ax + b,

.
,
Interpolation.

, SAP BusinessObjects Web Intelligence

71

, Web Intelligence
Web Intelligence


Interpolation .
,
Interpolation
.
, ,
, Interpolation,
, .

Interpolation([])
"-"
:

Interpolation([])

12

12

14

14

15
16

16

17

18

19

19

Linear
PointToPoint

72

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

input_type Last(dimension|measure)

dimension|measure

Last
.
Last
.

First([
]) [] .

Max

, SAP BusinessObjects Web Intelligence

73

, Web Intelligence
Web Intelligence

input_type Max(dimension|measure)

dimension|measure


Max.

" " 3 000, 60 034


901 234, Max([ ]) 901 234.
"" "" "",
Max ([]) "".

Median

( )

Median(measure)

74

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

, Median
.

Median([]) 971 444, []


835 420, 971 444 147 966.

Min

any_type Min(|)

, SAP BusinessObjects Web Intelligence

75

, Web Intelligence
Web Intelligence

dimension|measure

Min
.

" " 3000, 60034 901234,


Min([ ]) 3000.
"" "" "",
Min([]) "".

Mode

input_type Mode(dimension|measure)

76

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

dimension|measure

Mode ,
,
.

Mode([]) 200, []
100, 200, 300, 200.
Mode([])
[].

Percentage

num Percentage(measure[;Break][;Row|Col])

, SAP BusinessObjects Web Intelligence

77

, Web Intelligence
Web Intelligence

Row|Col

- -

" "
Percentage ([ ])

2001

1000

10

2002

5000

50

2003

4000

40

10000

100


.
Break.
.
" "
Percentage([ ];Break)

78

2001

1000

10

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

2000

20

5000

50

2000

20

2001

10000

100

2002

2000

20

2000

20

5000

50

1000

10

10000

100

2002

Percentage ;
Row|Col.
, - "
" Percentage ([
];Row)
1

2001

1000

10

2000

20

5000

50

2000

20

2002

2000

20

2000

20

5000

50

1000

10

, SAP BusinessObjects Web Intelligence

79

, Web Intelligence
Web Intelligence

Percentile

nth

num Percentile(measure;percentile)

N- , n%
. N% 0,n.

[] (10;20;30;40;50),
Percentile([];0,3) 22, 30%
.

Product

80

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

num Product(measure)

Product([]) 30, [] 2, 3, 5.

RunningAverage

num
RunningAverage(measure[;Row|Col][;IncludeEmpty][;reset_dims])

, SAP BusinessObjects Web Intelligence

81

, Web Intelligence
Web Intelligence

Row|Col

- -

IncludeEmpty

reset_dims

RunningAverage
.
Row Col.
,
RunningAverage, Web Intelligence
,
.
,
.
.
RunningAverage
.

RunningAverage([]) ,
:

82

Hawaiian Club

1 479 660

835 420

Bahamas Beach

971 444

1 225 552

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

French Riviera

835 420

1 095 508

RunningAverage([];([])) ,
:

Hawaiian Club

1 479 660

835 420

Bahamas Beach

971 444

1 225 552

French Riviera

835 420

835 420

IncludeEmpty
Row/Col

RunningCount

num
RunningCount(dimension|measure[;Row|Col][;IncludeEmpty][;reset_dims])

, SAP BusinessObjects Web Intelligence

83

, Web Intelligence
Web Intelligence

dimension|measure -

Row|Col

- -

IncludeEmpty

reset_dims


RunningCount.
Row Col.
,
RunningCount, Web Intelligence
, .
,
.
.
RunningCount
.

RunningCount([])
:

84

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Hawaiian Club

1 479 660

Bahamas Beach 971 444

French Riviera

835 420

RunningCount([];([]))
:

Hawaiian Club

1 479 660

Bahamas Beach 971 444

French Riviera

835 420

IncludeEmpty
Row/Col
IncludeEmpty
IncludeEmpty

RunningMax

, SAP BusinessObjects Web Intelligence

85

, Web Intelligence
Web Intelligence

input_type
RunningMax(dimension|measure[;Row|Col][;reset_dims])

dimension|measure -

Row|Col

- -

reset_dims

RunningMax
.
Row
Col.
,
RunningMax, Web Intelligence ,
.
,
.
.
RunningMax
.

RunningMax([]) ,
:

86

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

French Riviera

835 420

835 420

Bahamas Beach

971 444

971 444

Hawaiian Club

1 479 660

1 479 660

IncludeEmpty
Row/Col

RunningMin

input_type RunningMin(|
;[Row|Col];[reset_dims])

, SAP BusinessObjects Web Intelligence

87

, Web Intelligence
Web Intelligence

dimension|detail|measure -

Row|Col

- -

reset_dims

RunningMin
.
Row Col.
,
RunningMin, Web Intelligence
, .
,
.
.
RunningMin
.

RunningMin([]) ,
:

88

French Riviera

835 420

835 420

Bahamas Beach

971 444

835 420

Hawaiian Club

1 479 660

835 420

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

IncludeEmpty
Row/Col

RunningProduct

num RunningProduct(measure[;Row|Col][;reset_dims])

Row|Col

- -

reset_dims

RunningProduct
.
Row Col.
,
RunningProduct, Web Intelligence
, .
,
.

, SAP BusinessObjects Web Intelligence

89

, Web Intelligence
Web Intelligence

.
RunningProduct
.

RunningProduct([ ]) ,
:
-

24

241

5 784

RunningProduct([ ];([
])) , :
-

24

241

5 784

IncludeEmpty
Row/Col

90

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

RunningSum

num RunningSum(measure[;Row|Col][;reset_dims])

Row|Col

- -

reset_dims

RunningSum
.
Row
Col.
, RunningSum
, Web Intelligence ,
.
,
.
.
RunningSum
.

, SAP BusinessObjects Web Intelligence

91

, Web Intelligence
Web Intelligence

RunningSum([]) ,
:

French Riviera

835 420

835 420

Bahamas Beach

971 444

1 806 864

Hawaiian Club

1 479 660

3 286 524

RunningSum([];([])) ,
:

French Riviera

835 420

835 420

Bahamas Beach

971 444

971 444

Hawaiian Club

1 479 660

2 451 104

IncludeEmpty
Row/Col

StdDev

92

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

num StdDev()


. :




(
1).
.

(2, 4, 6, 8), StdDev()


2,58.
.

Var

StdDevP

, SAP BusinessObjects Web Intelligence

93

, Web Intelligence
Web Intelligence

num StdDevP(measure)


.
:
;

;
;
( ).
.
StdDevP
.

(2, 4, 6, 8) StdDevP([])
2,24.

Sum

94

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

num Sum(measure)


Sum.

" " 2000, 3000, 4000


1000, Sum ([ ]) 10000.

Var

num Var(measure)

, SAP BusinessObjects Web Intelligence

95

, Web Intelligence
Web Intelligence

.
:




(
1).

.

Var.

(2, 4, 6, 8), Var([])


6,67.
.

StdDev

VarP

96

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

num VarP(measure)


. :




( )

.

VarP.

(2, 4, 6, 8), VarP([])


5.
.

StdDevP

, SAP BusinessObjects Web Intelligence

97

, Web Intelligence
Web Intelligence


Asc

ASCII

int Asc()

,
ASCII .

Asc("A") 65.
Asc("ab") 97.
Asc([]) 85, ""
"US".

98

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Char

, ASCII

string Char(ascii_code)

ascii_code

ASCII

, .

s
Char(123) "{".

Concatenation

, SAP BusinessObjects Web Intelligence

99

, Web Intelligence
Web Intelligence

Concatenation(_;_)

"+".
"" + "" " ".
"" + "" + "" "
".

Concatenation("";"") " ".


Concatenation("";Concatenation("";""))
" ".

Fill

string Fill(repeating_string;num_repeats)

100

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

repeating_string

num_repeats

Fill ("-";2) "- -".

FormatDate

FormatDate( ;format_string)

format_string

, .

, SAP BusinessObjects Web Intelligence

101

, Web Intelligence
Web Intelligence

(: [], [] . .)
FormatDate.

FormatDate(CurrentDate();"dd/MM/yyyy")
"15/12/2005", 15 2005 .

FormatNumber

string FormatNumber(;format_string)

format_string

102

.
(, [], []
) FormatNumber .

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

FormatNumber([];"#,##.00") 835 420,00,


[] 835 420.

HTMLEncode

HTML

HTMLEncode(html)

html

HTML

HTMLEncode("http://www.businessobjects.com")
"http%3A%2F%2Fwww%2Ebusinessobjects%2Ecom ".

InitCap

, SAP BusinessObjects Web Intelligence

103

, Web Intelligence
Web Intelligence

InitCap()

InitCap(" ")
" ".

Left

Left(string;num_chars)

104

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

num_chars

Left([];2) "", [] ""

LeftPad

string LeftPad(padded_string;length;left_string)

, SAP BusinessObjects Web Intelligence

105

, Web Intelligence
Web Intelligence

padded_string

left_string

padded_string

, left_string
padded_string, left_string .
padded_string,
padded_string.
, padded_string
left_string, left_string
, .

LeftPad("";8;"-") "-"
LeftPad("";6;"") "-"
LeftPad("";11;"") " -"
LeftPad("";2;"") "".

LeftTrim

106

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

string LeftTrim(trimmed_string)

trimmed_string

LeftTrim([]) "", []
" ".

Length

int Length()

Length([]) 6,
[] "".

, SAP BusinessObjects Web Intelligence

107

, Web Intelligence
Web Intelligence

Lower

string Lower()

Lower("-") "-".

Match

bool Match(test_string;pattern)

108

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

test_string

"*" (
) "?" ( ).

Match([];"*") True, []
"".
Match([];"??") True, []
.
Match("-";"*") False

Pos

int Pos(test_string;pattern)

, SAP BusinessObjects Web Intelligence

109

, Web Intelligence
Web Intelligence

test_string

, Pos
.

Pos("-";"") 1
Pos("-, -";"") 1.
Pos("-"; "") 5.

Replace

Replace(replace_in;replaced_string;replace_with)

110

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

replace_in

, -

replaced_string
replace_with

replaced_string

Replace("-";"";"") "-".

Right

string Right(;num_chars)

, SAP BusinessObjects Web Intelligence

111

, Web Intelligence
Web Intelligence

num_chars

Right([];2) "", []
"".

RightPad

string RightPad(padded_string;length;right_string)

112

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

padded_string

right_string

padded_string

, right_string
padded_string, right_string .
padded_string,
padded_string.
, padded_string
right_string, right_string
,
.

RightPad("-";8;"") "-"
RightPad("-"; 6;"") "-"
RightPad("-";11;"") "-"
RightPad("-";2;"") "".

RightTrim

, SAP BusinessObjects Web Intelligence

113

, Web Intelligence
Web Intelligence

RightTrim(trimmed_string)

trimmed_string

RightTrim([]) "", []
" ".

Substr

SubStr(;;)

114

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

SubStr ("";1;5) "".


SubStr ("";7;7) "".

Trim

Trim(trimmed_string)

, SAP BusinessObjects Web Intelligence

115

, Web Intelligence
Web Intelligence

Trim (" ") "".

Upper

string Upper(string)

Upper ("-") "-".

116

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

UrlEncode

URL

UrlEncode(html)

html

URL-, -

UrlEncode("http://www.businessobjects.com")
"http%3A%2F%2Fwww%2Ebusinessobjects%2Ecom".

WordCap

, SAP BusinessObjects Web Intelligence

117

, Web Intelligence
Web Intelligence

WordCap(string)

WordCap(" ") "


".


CurrentDate

CurrentDate()

CurrentDate() 10 2002 , 10
2002 .

118

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

CurrentTime

CurrentTime()

CurrentTime 11:15, 11:15.

DayName

DayName()

, SAP BusinessObjects Web Intelligence

119

, Web Intelligence
Web Intelligence

DayName([ ]) "",
[ ] 15 2001 (
).

.
, DayName("07/15/2001"), .

DayNumberOfMonth

int DayNumberOfMonth()

120

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

DayNumberOfMonth([ ]) 15,
[ ] 15 2001.

DayNumberOfWeek

DayNumberOfWeek()

Web Intelligence .

DayNumberOfWeek([ ]) 1,
[ ] 2 2005 ().

, SAP BusinessObjects Web Intelligence

121

, Web Intelligence
Web Intelligence

DayNumberOfYear

int DayNumberOfYear()

DayNumberOfYear([ ]) 349,
[ ] 15
2001.

DaysBetween

122

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

int DaysBetween(first_date;last_date)

first_date

last_date

DaysBetween([ ]; [ ])
2, [ ] 15 2001 ., [
] 17 2001 .

LastDayOfMonth

LastDayOfMonth()

, SAP BusinessObjects Web Intelligence

123

, Web Intelligence
Web Intelligence

LastDayOfMonth([ ]) 31 2005
, [ ] 11 2005 .

LastDayOfWeek

date LastDayOfWeek()

Web Intelligence .

124

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

LastDayOfWeek([ ]) 15 2005
(), [ ] 11 2005
.

Month

string Month()

Month([ ]) "",
[ ] 15 2005 .

MonthNumberOfYear

, SAP BusinessObjects Web Intelligence

125

, Web Intelligence
Web Intelligence

int MonthNumberOfYear()

MonthNumberOfYear([ ])
12, [ ] 15 2005 .

MonthsBetween

int MonthsBetween(first_date;last_date)

126

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

first_date

last_date

MonthsBetween([ ]; [
]) 1, [ ] 2
2005 ., [ ] 2 2006 .

Quarter

int Quarter()

Quarter([ ])
4, [ ] 15
2005 .

, SAP BusinessObjects Web Intelligence

127

, Web Intelligence
Web Intelligence

RelativeDate

RelativeDate(start_date;num_days)

start_date

num_days

num_days ,
, start_date.

RelativeDate[ ];2) 17
2005 , [ ]
15 2005 .
RelativeDate[ ];-3) 9
2007 , [ ] 12 2007 .

128

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

TimeDim

TimeDim
. Timedim
, , ,
. , ,
.
.
:
(
, ).
,
.

TimeDim([Date Type]; Period Type)

, SAP BusinessObjects Web Intelligence

129

, Web Intelligence
Web Intelligence

,
InvoiceDate.

- .

DayPeriod
MonthPeriod
QuarterPeriod
YearPeriod

, DayPeriod.


:
DayName
DayNumberOfMonth
DayNumberOfWeek
DayNumberOfYear
Month
MonthNumberOfYear


FormatDate

, .

.

130

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

1/3/00

31607

1/8/00

31244

7/3/00

38154

DayName(TimeDim([Invoice Date] ; QuarterPeriod)


.
-

1/3/00

31607

1/8/00

31244

4/1/00
7/3/00

38154

timedim
Quarter. , Quarter (Q1,
Q2...), :
-

62851

2
3

38154

ToDate

, SAP BusinessObjects Web Intelligence

131

, Web Intelligence
Web Intelligence

date ToDate(date_string;format)

date_string

ToDate ("15/12/2002"; "dd/MM/yyyy") 15/12/2002.

Week

int Week ()

132

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Week ([ ]) 1, [
] 4 2004 . ( 2004 ).

Year

int Year(date)

Year ([ ]) 2005, [ ]
15 2005.

, SAP BusinessObjects Web Intelligence

133

, Web Intelligence
Web Intelligence

Data Provider functions


Connection

string Connection(dp)

dp

.

, .

DataProvider

134

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

DataProvider(obj)

DataProvider([ ]) "",
[ ] "".

DataProviderKeyDate

DataProviderKeyDate(dp)

, SAP BusinessObjects Web Intelligence

135

, Web Intelligence
Web Intelligence

dp

.

.

DataProviderKeyDate([]) 3 2007 ,
3 2007
.

DataProviderKeyDateCaption

string DataProviderKeyDateCaption(dp)

136

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

dp

DataProviderKeyDateCaption([]) "
",
"" " ".

DataProviderSQL

SQL,

string DataProviderSQL(dp)

, SAP BusinessObjects Web Intelligence

137

, Web Intelligence
Web Intelligence

dp

DataProviderSQL([ 1]) "SELECT


country.country_name FROM country", SQL
"SELECT country.country_name FROM country".

DataProviderType

DataProviderType(dp)

138

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

dp

DataProviderType ""
" "
.
.

DataProviderType([]) "",
"" .

IsPromptAnswered

bool IsPromptAnswered([dp;]prompt_string)

, SAP BusinessObjects Web Intelligence

139

, Web Intelligence
Web Intelligence

dp

, -

prompt_string

IsPromptAnswered(" ")
True, " ",
.
IsPromptAnswered ( [];" ")
True, "
" [] .

LastExecutionDate

LastExecutionDate(dp)

140

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

dp

,
dp
.
DataProvider
.

LastExecutionDate([ ]) "4/3/2002",
" " 4
2002 .
.

DataProvider

LastExecutionDuration

num LastExecutionDuration(dp)

, SAP BusinessObjects Web Intelligence

141

, Web Intelligence
Web Intelligence

dp

LastExecutionDuration([]) 3,
"" 3
.

LastExecutionTime

time LastExecutionTime(dp)

142

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

dp

,
dp .
DataProvider
.
.

LastExecutionTime([ ])
"14:48:00", "
" 14:48:00.
.

DataProvider

NumberOfDataProvider

int NumberOfDataProviders()

, SAP BusinessObjects Web Intelligence

143

, Web Intelligence
Web Intelligence

NumberOfDataProviders() 2,
.

NumberOfRows

int NumberOfRows(dp)

dp

.
DataProvider
.

NumberOfRows([ 1]) 10,


" 1" 10 .
.

DataProvider

144

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

RefValueDate

RefValueDate()

RefValueDate() 15 2008 .,
15 2008 .

RefValueUserReponse

string RefValueUserResponse([dp;]prompt_string[;Index])

, SAP BusinessObjects Web Intelligence

145

, Web Intelligence
Web Intelligence

dp

prompt_string
Index

,
.
.

DataProvider.

, (
, Index),
.

RefValueUserResponse( " ?" )


"-", " ?" "
" ,
.
RefValueUserResponse([ ];" ?")
"-", " ?"
" " " "
, .

146

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

UniverseName

UniverseName(dp)

dp

Web Intelligence
.
1,
UniverseName(1).
.
DataProvider
.

UniverseName([ 1]) "eFashion",


eFashion.
.

DataProvider

, SAP BusinessObjects Web Intelligence

147

, Web Intelligence
Web Intelligence

UserResponse

string UserResponse([dp;]prompt_string[;Index])

dp

prompt_string
Index

148

.
DataProvider
.

, (
, Index),
.

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

UserResponse(" ?") "-",


" ?" "-" .
UserResponse([ ];" ?")
"-", " ?" " "
" ".
UserResponse([ ];" ?"; )
23, " "
"-" " ",
"-" 23.


DocumentAuthor


InfoView

DocumentAuthor()

DocumentAuthor() "gkn",
"gkn".

, SAP BusinessObjects Web Intelligence

149

, Web Intelligence
Web Intelligence

DocumentCreationDate

DocumentCreationDate()

DocumentCreationDate() 15 2008 ,
15 2008 .

DocumentCreationTime

DocumentCreationTime()

DocumentCreationTime() 11:15,
11:15.

150

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

DocumentDate

DocumentDate()

DocumentDate() 8 2005 ,
8 2005 .

DocumentName

DocumentName()

DocumentName() " ",


" ".

, SAP BusinessObjects Web Intelligence

151

, Web Intelligence
Web Intelligence

DocumentPartiallyRefreshed

, .

DocumentPartiallyRefreshed()

DocumentPartiallyRefreshed() ,
If.

DocumentPartiallyRefreshed() True,
.

DocumentTime

DocumentTime()

152

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

DocumentTime() 15:45,
15:45.

DrillFilters

DrillFilters(obj|separator)

obj
separator

obj
separator

DrillFilters , DrillFilters,
.
,
, .

, SAP BusinessObjects Web Intelligence

153

, Web Intelligence
Web Intelligence

DrillFilters() "",
, [] "
".
DrillFilters() " 1999",
, [] ""
[] "1999"
DrillFilters("/") " / 1999",
, []
"" [] "1999"
DrillFilters ([]) "3",
, []
"3"

PromptSummary

string PromptSummary()

QuerySummary()
.
:

Enter Quantity Sold: 5000


Enter value(s) for State (optional): California,

154

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Texas, Utah
Enter Customer (optional):

QuerySummary

QuerySummary([dp])

dp

QuerySummary() .
QuerySummary([ 1]) ,
[ 1].
:
Query 1:
Universe: eFashion
Last execution time: 1s

, SAP BusinessObjects Web Intelligence

155

, Web Intelligence
Web Intelligence

NB of rows: 34500
Result objects: State, Year, Sales Revenue
Scope of analysis: State, City, Year, Quarter,
Month
Filters:
(State inlist{"US";"France";}
And (Sales Revenue Greater Than 1000000
Or Sales Revenue Less Than 10000))
Query 2:
Source file: D:\Data\datacar.xls
Result objects: State, Year, Sales Revenue

ReportFilter

string ReportFilter()

ReportFilter([]) "",
"" ,
"".

156

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

ReportFilterSummary

string ReportFilterSummary(report_name)

report_name

report_name , ReportFilterSummary
.

ReportFilterSummary()
.
ReportFilterSummary("Report1")
"1".
:
Filters on Report1:
(Sales Revenue Greater Than 1000000
Or (Sales Revenue Less Than 3000))
Filters on Section on City:
(City InList{"Los Angeles";"San Diego";})
Ranking Filter:

, SAP BusinessObjects Web Intelligence

157

, Web Intelligence
Web Intelligence

(Top 10 & Bottom 10 [Customer] Based on [Sales


Revenue] (Count))


Even

bool Even()

Even ,
If.
Even , Web
Intelligence
(1=; 0=).
.

Even(4) True.
Even(3) False.

158

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Even(23,2) False.
Even(-4) True.
Even(-2,2) False.

IsDate

bool IsDate(obj)

IsDate ,
If.
IsDate() , Web
Intelligence (1=;
0=).
.

IsDate([Reservation Date]) True, [


] .

, SAP BusinessObjects Web Intelligence

159

, Web Intelligence
Web Intelligence

If(IsDate([ ]) Then "" Else " "


"", [ ] .
.

If...Then...Else

IsError

bool IsError()

IsError ,
If.
IsError ,
Web Intelligence
.
.

IsError([]) False,
[] .

160

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

IsError([ ])
True, [ ]
(#DIV/0).
If IsError([ ]) Then ""
Else " " "",
[ ] (#DIV/0).
.

If...Then...Else

IsLogical

bool IsLogical()

IsLogical ,
If.
IsLogical ,
Web Intelligence
.
.

, SAP BusinessObjects Web Intelligence

161

, Web Intelligence
Web Intelligence

IsLogical(IsString([]))
True.
IsLogical([]) False,
- , .
If IsLogical(IsDate([])) Then "" Else
" " "".
.

If...Then...Else

IsNull

bool IsNull(obj)

162

IsNull ,
If.

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

IsNull , Web Intelligence


.
.

IsNull([]) False, []
.
IsNull([ ]) True,
[ ] .
.

If...Then...Else

IsNumber

bool IsNumber(obj)

IsNumbe ,
If.

, SAP BusinessObjects Web Intelligence

163

, Web Intelligence
Web Intelligence

IsNumber , Web
Intelligence .

.

IsNumber([]) True,
[] .
IsNumber([ ]) False,
[ ] .
If IsNumber([ ]) Then "" Else " "
" ", [ ]
.
.

If...Then...Else

IsString

bool IsString()

164

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

IsString ,
If.
IsString , Web
Intelligence .
.

IsString([]) False,
[] .
IsString([ ]) True,
[ ] .
If IsString([ ]) Then "" Else
" " "", [
] .
.

If...Then...Else

IsTime

, SAP BusinessObjects Web Intelligence

165

, Web Intelligence
Web Intelligence

bool IsTime(obj)

IsTime ,
If.
IsTime , Web Intelligence
.
.

IsTime([ ]) True,
[ ] . .
IsTime([ ]) False,
[ ] .
If IsTime([ ]) Then "" Else "
" " ", [ ]
.
.

If...Then...Else

Odd

166

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

bool Odd(number)

Odd ,
If.
Odd , Web Intelligence
.
.
Odd .

Odd(5) True.
Odd(4) False.
Odd(23.2) True.
Odd(24.2) True.
Odd(-23.2) True.
Odd(-24.2) True.
.

If...Then...Else

, SAP BusinessObjects Web Intelligence

167

, Web Intelligence
Web Intelligence


Abs

num Abs(number)

Abs (25) 25.


Abs (-11) 11.

Ceil

168

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

num Ceil ()

Ceil(2.4) 3.
Ceil(3.1) 4.
Ceil(-3.1) -3.

Cos

num Cos()

, SAP BusinessObjects Web Intelligence

169

, Web Intelligence
Web Intelligence

Cos(180) -0.6.

EuroConvertFrom

EuroConvertFrom(euro_amount;curr_code;round_level)

euro_amount

curr_code

ISO

round_level

12 ,

170

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

2002 . ,
: #ERROR. :
BEF

DEM
GRD
ESP

FRF

IEP

ITL

LUF

NLG

ATS

PTS

FIM

EuroConvertFrom(1000;"FRF";2) 6559,57.
EuroConvertFrom(1000;"FRF";1) 6559,60.
EuroConvertFrom(1000.04;"DEM";2) 1955,83.
EuroConvertFrom(1000.04;"DEM";1) 1955,80.
.

Web Intelligence

, SAP BusinessObjects Web Intelligence

171

, Web Intelligence
Web Intelligence

EuroConvertTo

num EuroConvertTo(noneuro_amount;curr_code;round_level)

noneuro_amount ,

curr_code

ISO ,

round_level ,

EuroConvertTo(6559;"FRF";2) 999,91.
EuroConvertTo(6559;"FRF";1) 999,90.
EuroConvertTo(1955;"DEM";2) 999,58.
EuroConvertTo(1955;"DEM";1) 999,60.

12 ,

2002 . ,
: #ERROR. :

172

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

BEF

DEM

GRD

ESP

FRF

IEP

ITL

LUF

NLG

ATS

PTS

FIM

Web Intelligence

EuroFromRoundError

, SAP BusinessObjects Web Intelligence

173

, Web Intelligence
Web Intelligence

num EuroFromRoundError(euro_amount;curr_code;round_level)

euro_amount

curr_code

ISO

round_level ,

EuroFromRoundErr(1000;"FRF";2) 0. (
,
2 .)
EuroFromRoundErr(1000;"FRF";1) 0,03. (
6559,57. , 1
, 6559,60.
0,03.)
EuroFromRoundErr(1000;"DEM";2) 0. (
,
2 .)
EuroFromRoundErr(1000;"DEM";1) -0,01. (
1955,83. , 1
, 1995,80. -0,03.)

12 ,

174

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

2002 . ,
: #ERROR. :
BEF

DEM

GRD

ESP

FRF

IEP

ITL

LUF

NLG

ATS

PTS

FIM

Web Intelligence

EuroToRoundError

, SAP BusinessObjects Web Intelligence

175

, Web Intelligence
Web Intelligence

EuroToRoundError(noneuro_amount;curr_code;round_level)

noneuro_amount ,

curr_code

ISO ,

round_level ,

EuroToRoundErr(6559;"FRF";2) 0. (
, 2
.)
EuroToRoundErr(6559;"FRF";1) -0.01. (
999,91. , 1
999,90. -0,01).
EuroToRoundErr(1955;"DEM";2) 0. (
, 2
.)
EuroToRoundErr(1955;"DEM";1) 0,02. (
999,58. , 1
999,60. 0,02).

12 ,

2002 . ,
: #ERROR. :
BEF

176

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

DEM

GRD

ESP

FRF

IEP

ITL

LUF

NLG

ATS

PTS

FIM

Web Intelligence

Exp

( e,
)

num Exp()

, SAP BusinessObjects Web Intelligence

177

, Web Intelligence
Web Intelligence


e (2,718...) .

Exp(2,2) 9,03.

Fact

int Fact()

1
.

178

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Fact(4) 24.
Fact(5,9) 120.

Floor

Floor()

Floor(24.4) 24.

Ln

, SAP BusinessObjects Web Intelligence

179

, Web Intelligence
Web Intelligence

num Ln()

Ln(10) 2.

Log

num Log(number;base)

Log(125;5) 3.

180

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Log10

10

num Log10(number)

Log10(100) 2.

Mod

num Mod(dividend;divisor)

, SAP BusinessObjects Web Intelligence

181

, Web Intelligence
Web Intelligence

Mod(10;4) 2.
Mod (10,2;4,2) 1,8

Power

num Power(;)

Power(10;2) 100.

182

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Rank

int
Rank(measure;[ranking_dims][;Top|Bottom][;reset_dims])

ranking_dims , -

(Top
)

Top
Bottom

reset_dims , -

, Web Intelligence
,
.

, SAP BusinessObjects Web Intelligence

183

, Web Intelligence
Web Intelligence

,

.

.

.

Rank([
];([])):

835 420

2 451 104

Rank([
];([]);Bottom). Bottom ,
.

835 420

2 451 104

Rank([
];([];[])):

184

French Riviera

835 420

Bahamas Beach

971 444

Hawaiian Club

1 479 660

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Rank([
];([];[]);([])).
.

FY1998

295 940

FY1999

280 310

FY2000

259 170

FY1998

767 614

FY1999

826 930

FY2000

856 560

Bottom/Top

Round

num Round (number;round_level)

, SAP BusinessObjects Web Intelligence

185

, Web Intelligence
Web Intelligence

round_level

Round(9.44;1) 9.4.
Round(9.45;1) 9.5.
Round(9.45;0) 9.
Round(9.45;-1) 10.
Round(4.45;-1) 0.
.

Web Intelligence

Sign

int Sign(number)

186

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

1, , 0
, 1 .

(3) 1.
(27.5) 1.

Sin

num Sin(angle)

Sin(234542) -0,116992.

, SAP BusinessObjects Web Intelligence

187

, Web Intelligence
Web Intelligence

Sqrt

num Sqrt(number)

Sqrt (25) 5.

Tan

num Tan(angle)

188

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Tan (90) -2.

ToNumber

num ToNumber(string)

, ToNumber
#ERROR.

ToNumber ("45") 45.

, SAP BusinessObjects Web Intelligence

189

, Web Intelligence
Web Intelligence

Truncate

num Truncate(number;truncate_level)

truncate_level ,

Truncate (3,423; 2) 3,42.


.

Web Intelligence

190

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

BlockName

BlockName()

BlockName() " 1",


" 1".

ColumnNumber

int ColumnNumber()

, SAP BusinessObjects Web Intelligence

191

, Web Intelligence
Web Intelligence

ColumnNumber() 2,
.

CurrentUser

InfoView

CurrentUser()

CurrentUser() "gkn",
InfoView "gkn".

ForceMerge

num ForceMerge(measure)

192

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

ForceMerge #,
,
, ,
.
ForceMerge Web Intelligence
Multicube BusinessObjects/Desktop Intelligence.

ForceMerge([]) []
,
[].

GetContentLocale

,
( )

GetContentLocale()

, SAP BusinessObjects Web Intelligence

193

, Web Intelligence
Web Intelligence


Web Intelligence.

GetContentLocale() "fr_FR",
" ()".

GetDominantPreferredViewingLocale

string GetDominantPreferredViewingLocale()


,
. ,
() ("en_US")
.
( ) .

.

GetDominantPreferredViewingLocale "en_US",

" ( )".

194

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

GetPreferredViewingLocale

GetLocale

,
Web Intelligence (
)

GetLocale()

,
Web Intelligence
(, ).

GetLocale() "en_US",

" ()".

GetLocalized


, .

, SAP BusinessObjects Web Intelligence

195

, Web Intelligence
Web Intelligence

string GetLocalized(string[;comment])

comment

string Web
Intelligence (, ,
).
comment
,
.
" ",
Web Intelligence.
+
" ".
GetLocalized(" ";" 20
") GetLocalized(" ";"
20 ") .

GetLocalized(" ")
" ",

"fr_FR".
GetLocalized(" ", "
20 ")
" ",

"de_DE". ,

196

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

20
.
.

GetPreferredViewingLocale

GetPreferredViewingLocale


(
)

string GetPreferredViewingLocale()

GetPreferredViewingLocale "en_US",

" ()".
.

GetLocalized
GetDominantPreferredViewingLocale

If...Then...Else

,
TRUE FALSE

, SAP BusinessObjects Web Intelligence

197

, Web Intelligence
Web Intelligence

If bool_value Then true_value [Else false_value]


bool_value

true_value

,
bool_value
True

false_value

,
bool_value
False

,
Else

true_value false_value .
And, Between,
InList, Or Not If.
If,
ElseIf. :
If test_value Then true_value [Else false_value|ElseIf
test_value Then true_value [Else
false_value]]

Web Intelligence
If(bool_value;true_value;false_value).

If [ ]>1000000 Then " "


" " ,
1 000 000.

198

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

If [ ] >1000000 Then " " Else


[] " " ,
1 000 000,
.
If [ ]>1000000 Then " " Else
" " " " ,
1 000 000 " " ,
1 000 000.
If [ ]>1000000 Then " " ElseIf
[ ] > 800000 Then " " Else
" " " " ,
1 000 000, " " ,
800 000 1 000 000 " "
.
.

If
""""
Between
Inlist
"or"

If

,
TRUE FALSE

If(bool_value;true_value;false_value)

, SAP BusinessObjects Web Intelligence

199

, Web Intelligence
Web Intelligence

bool_value

true_value

,
bool_value
True

false_value

,
bool_value
False

true_value false_value

If
false_value If.
If(bool_value;true_value;If(bool_value;true_value;false_value|If...))

Web Intelligence
If...Then...Else.

If([ ]>1000000;" ";"


") " " ,
1 000 000, " " ,
1 000 000.
If([ ]>1000000;" ";[
]) " " ,
1 000 000,
.
.

If...Then...Else

200

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

LineNumber

int LineNumber()

,
1.

LineNumber() 2,
.

NameOf

string NameOf()

, SAP BusinessObjects Web Intelligence

201

, Web Intelligence
Web Intelligence

Web Intelligence NameOf


.

NameOf([ ]) "
".

NoFilter

input_type NoFilter(obj[;All|Drill])

202

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

All|Drill

All
Drill

NoFilter(obj;Drill) ,
. . ,
.
,
,
,
NoFilter(obj;Drill).

NoFilter(Sum([ ]))
,
,
.
NoFilter(Sum([ ]);All)
, ,
, .
NoFilter(Sum([ ]);Drill)
,
[].

, SAP BusinessObjects Web Intelligence

203

, Web Intelligence
Web Intelligence

NumberOfPages

integer NumberOfPages()

NumberOfDataPages() 2,
.

Page

Page()

Page() 2, .

204

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Previous

input_type
Previous(dimension|measure|Self[;reset_dims][;offset][;NoNull])

||Self

, ,
,

Self

reset_dims , -


, ,

NoNull

, -

(
1)

1. Previous([Revenue];1)
Previous([Revenue]) .

, SAP BusinessObjects Web Intelligence

205

, Web Intelligence
Web Intelligence

NoNull, Web Intelligence


,
,
.
Previous ()

SELF
, .
,
.
.
Web Intelligence Previous
, .
,
Previous.
Web Intelligence Previous
.
,
Previous.
Previous ,
, Previous
,
.

Previous .
Previous ,

.
Web Intelligence Previous .
-, Previous

.

Previous([Country];1)
:

206

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

5 000 000

2 000 000

2 100 000

Previous([Revenue])
:

5 000 000

2 000 000

5 000 000

2 100 000

2 000 000

Previous([Revenue];([Country])
:

5 000 000

7 000 000

3 000 000

4 000 000

5 000 000

3 000 000

Previous([Revenue])
-:
2004

5 000 000

2005
6 000 000

5 000 000

, SAP BusinessObjects Web Intelligence

207

, Web Intelligence
Web Intelligence

2 000 000

2 500 000

2 000 000

2 000 000

3 000 000

3 000 000

Previous([Revenue])
[]:

5 000 000

7 000 000

5 000 000

12 000 000

3 000 000

7 000 000

4 000 000

3 000 000

7 000 000

12 000 000

Previous([Revenue]);2;NoNull)
:

208

2008

500

2008

2008

400

500

2008

700

500

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

2008

300

2008

700

2008

300

2008

200

400

300

2*Previous(Self) 2, 4, 6, 8, 10...
.

Previous
Self

RefValue

input_type RefValue(obj)

RefValue([ ]) "-",
[ ]
"-".
RefValue([]) 1000, []
1000.

, SAP BusinessObjects Web Intelligence

209

, Web Intelligence
Web Intelligence

RelativeValue

input_type
RelativeValue(measure|detail;slicing_dims;offset)

measure|detail

slicing_dims ,

,
,

,
.

.
: ,
, ,
.

210

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

,
.

, .
,
#COMPUTATION.

, .
RelativeValue .
,
.

RelativeValue .
RelativeValue([Revenue];([Year]);-1)

RelativeValue

2007

1000

2007

2000

2007

1500

2007

3000

2008

4000

1000

2008

3400

2000

2008

2000

1500

2008

1700

3000

RelativeValue .
" Web Intelligence"
, SAP BusinessObjects
Web Intelligence . .
.

#COMPUTATION
RelativeValue

, SAP BusinessObjects Web Intelligence

211

, Web Intelligence
Web Intelligence

ReportName

ReportName()

ReportName() " ",


" ".

RowIndex

integer RowIndex()

212

0.
RowIndex #MULTIVALUE
.

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

RowIndex 0,
.

UniqueNameOf

UniqueNameOf(obj)

UniqueNameOf ([ ]) " ".

Web
Intelligence
.
, , ,
.

, SAP BusinessObjects Web Intelligence

213

, Web Intelligence
Web Intelligence


,
. (+), (-),
(*), (/),
. [ ]
[ ]
.
:

"+"
. ,
. , "" + ""
" ".

>

<

>=

<=

<>

If, :
If [Revenue]>10000 Then "High" Else "Low"

214

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

"" ,
10000, ""
.


Web Intelligence
: And, Or, Not, Between Inlist.
,
.

""""

And . ,
And, True,
True.

bool_value And bool_value [And bool_value...]

If [] = " " And []>100000


Then " "
" ",
[] = " " And []>100000.

"or"

Or .
, Or, True,
True.

, SAP BusinessObjects Web Intelligence

215

, Web Intelligence
Web Intelligence

bool_value Or bool_value [Or bool_value...]

If [] = " " Or []="


" Then "" Else "" "",
[]=" " " " ,
, "".

Not , .

bool Not(bool_value)

If Not([] = "") Then " " " ",


[] , "".

Between

Between ,
.

bool Between(first_value;second_value)

216

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Between If
Where.

,
,
Between. (

Web Intelligence InfoView.)

If [] Between(800000;900000) Then "


" " ", []
800000 900000.
[ ] Between (10000;20000)
True, 10000 20000.
If ([ ] Between
(200000;500000);" ";"/ ")
" ", [ ]
300000.
.

If...Then...Else
Where

Inlist

Inlist ,
.

bool test_value Inlist(value_list)

, SAP BusinessObjects Web Intelligence

217

, Web Intelligence
Web Intelligence

test_value + InList
, InList.

If Not ([] InList("";"";""))


Then " " Else "" " ",
[] "", "" "" ,
, "".
If [] InList(" ";" ")
Then " " " ", []
" " " ".
.

If...Then...Else
Where


Web Intelligence
. , Previous
Self.
: ) (. ,
,
;.

All
All NoFilter ,
Count ,
.
.

Count
Distinct/All

218

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

NoFilter
All/Drill

All/Drill

All/Drill ,
NoFilter.

NoFilter
All NoFilter
Drill NoFilter

Bottom/Top

Bottom/Top Rank,
.
Top
Bottom

Rank([];([]);Top
.
.

Rank

, SAP BusinessObjects Web Intelligence

219

, Web Intelligence
Web Intelligence

Break

Break Percentage,
.

Percentage([])
(
):

2005

10000

10%

2005

20000

20%

2006

30000

30%

2006

40000

40%

Percentage([];Break)
(
):

220

2005

10000

33,3%

2005

20000

66,6%

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

2006

30000

42.9%

2006

40000

57.1%

Percentage

Distinct/All
Distinct/All Count,
:

Count([]; Distinct) 3, []
(5;5;6;4)
Count([]; All) 4, []
(5;5;6;4)
.

Count

IncludeEmpty

IncludeEmpty
.

Average([]; IncludeEmpty) 3
[]: 5; 3; <>; 4.

, SAP BusinessObjects Web Intelligence

221

, Web Intelligence
Web Intelligence

Average
Count
RunningAverage
RunningCount

Index

Index UserResponse
RefValueUserResponse
.
.

UserResponse
RefValueUserReponse

Linear



.


f(x) = ax + b,
, .
.

222

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

NoNull

NoNull Previous
.
NoNull Previous
,
, .
.

Previous

NotOnBreak

NotOnBreak Interpolation
.
.

PointToPoint

PointToPoint Interpolation

.

f(x) = ax + b,
.
.

, SAP BusinessObjects Web Intelligence

223

, Web Intelligence
Web Intelligence

Row/Col

Row/Col
: Percentage, RunningAverage, RunningCount, RunningMax,
RunningMin, RunningProduct, RunningSum.

ROW Web Intelligence



. COL Web
Intelligence
.
- Web Intelligence
-.
ROW Web Intelligence
.
COL Web Intelligence
.

- Percentage([]) :

100

10%

500

50%

200

20%

200

20%

Percentage([];ROW) :

224

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

100

16,7%

500

83,3%

200

50%

200

50%

Percentage([];COL) :

100

33,3%

500

83,3%

200

66,6%

200

16,7%

ROW ( ) Web Intelligence


.
COL Web Intelligence
.
- RunningSum([Measure])
RunningSum([Measure];Row) :

RunningSum

RunningSum

100

100

200

300

400

700

250

950

- Percentage([]) :

RunningSum

RunningSum

100

100

200

700

400

500

250

950

, SAP BusinessObjects Web Intelligence

225

, Web Intelligence
Web Intelligence

Percentage
RunningAverage
RunningCount
RunningMax
RunningMin
RunningProduct
RunningSum

Self

Previous ,
.

5 + Previous(Self) 5, 10, 15, 20,


25, 30...
1 + 0.5 * Previous(Self) 1, 1.5,
1.75, 1.88...
.

Previous

Where

Where ,
.

226

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

Average ([ ]) Where ([] =


"") "".
Average ([ ]) Where ([] =
"" Or [] = "")
"" "".
[] Where (Not ([] Inlist ("";
""))) , ""
"".
[ ] [] Where
[ > 500000]. [
] , 500000.
[
], Average ([ ])
, 500000.
.

""""
Between
Inlist
"or"



.
:

In

, SAP BusinessObjects Web Intelligence

227

, Web Intelligence
Web Intelligence

ForEach

ForAll

ForAll ForEach ,
.

ForAll ForEach,
In.

In Context
In Context .
: In Context

, ""
" ".
"", . ,

.
:

"
" ,
"":

228

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

" "
. , 4
2002 , , "
" 2002 4.
In, "
"
Max ([Sales Revenue] In ([Year];[Quarter])) In ([Year])
Web Intelligence
"/",
.
:
"",
.

, SAP BusinessObjects Web Intelligence

229

, Web Intelligence
Web Intelligence

ForEach
ForEach .
: ForEach


, "",
:

2001

8 096 123,60

2 660 699,50

2002

13 232 246,00

4 186 120,00

2003

15 059 142,80

4 006 717,50

" "
, ForEach:
Max ([Sales Revenue] In ([Year];[Quarter])) In ([Year])
"ForEach"
:
Max ([Sales Revenue] ForEach ([Quarter])) In ([Year])
: ""
. "ForEach"
"" ,
([];[]).

ForAll
ForAll .

230

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

: ForAll

, , ,
,
, :


(); (; ).
, ForAll ([]),
:
Sum([Sales Revenue] ForAll ([Quarter]))
,
"In".
:
Sum([Sales Revenue] In ([Year]))
,
, .

, SAP BusinessObjects Web Intelligence

231

, Web Intelligence
Web Intelligence


Web
Intelligence

,
.
;

,
.
: ,
, , .


,
, ;
,
. ,
, .
...

...

,
,

(
)

,
,

( ,
-
)

232

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

, .
"".
.

" " .
Average([Sales revenue] In Section)
"
".
Average ([Sales revenue]) In Block
,
.

, SAP BusinessObjects Web Intelligence

233

, Web Intelligence
Web Intelligence

""
,
"" :
...

...

(
)

( ,
-
)

: ""

"", "" " "


"". ,
"", "".

234

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

2001

2 660 700

2 660 699,5

2 279 003

2 279 003

1 367 841

1 367 840,7

1 788 580

1 788 580,4

2001

8 096 123,6

""
Sum ([Sales Revenue]) In Body
"" " " ,
"" .
"", ""
" ".
,
.

""
,
""
:
...

...

(
)

( ,
-
)

, SAP BusinessObjects Web Intelligence

235

, Web Intelligence
Web Intelligence

...

...

: ""

, .

"". "
" :
Sum ([Sales Revenue]) In Break
""
" ",
([];[]).

Report
,
Report :

236

...

...

(
)

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

...

...

( ,
-
)

: Report

, .
" ",
.

" ": Sum([ ]) In


Report. Report
" ",

([];[]).

, SAP BusinessObjects Web Intelligence

237

, Web Intelligence
Web Intelligence

""
,
"" :
...

...

(
)

( ,
-
)

: ""

"", "" " ".

"". "
" :
Sum ([Sales Revenue]) In Section
" " 2001
, "".
""

238

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

" ",
([];[]).


Web Intelligence
Web Intelligence , ,

. ,
, 0.

, SAP BusinessObjects Web Intelligence

239

, Web Intelligence
Web Intelligence

>0


<>.
.
Round(3,13; 1) 3,1
Round(3,157; 2) 3,16



.
Truncate(3,7; 0) 3
Truncate(4,164; 0) 4

<0


10 ( = -1), 100 ( = -2), 1000 ( = -3) .
.
Round(123,76; -1) 120
Round(459,9; -2) 500
Truncate(1600; -3) 1000


.
.

Round
Truncate
EuroConvertTo
EuroConvertFrom
EuroFromRoundError

240

, SAP BusinessObjects Web Intelligence

, Web Intelligence
Web Intelligence

EuroToRoundError

, SAP BusinessObjects Web Intelligence

241

, Web Intelligence
Web Intelligence

242

, SAP BusinessObjects Web Intelligence


Web Intelligence

Web Intelligence



Web Intelligence
,
, "#".
, .

#COMPUTATION
#COMPUTATION ,
,
RelativeValue, ,
.
#COMPUTATION
.
. ,
SAP BusinessObjects Web Intelligence.
.

RelativeValue

#CONTEXT
#CONTEXT ,
.
#CONTEXT
#INCOMPATIBLE #DATASYNC,
, .
#INCOMPATIBLE
; #DATASYNC
,
.

244

, SAP BusinessObjects Web Intelligence

Web Intelligence

, "Island Resorts Marketing",


" " "",
#CONTEXT ,
. (
).

#DATASYNC
#DATASYNC
,
,
. #DATASYNC
, #CONTEXT
.
:

, Island Resorts Marketing,


(, ) (),
,
#DATASYNC ,
.

#DIV/0
#/0 ,
,
. .
:

,
, (
).

, SAP BusinessObjects Web Intelligence

245

Web Intelligence

;
#/0
,
; .. .

#EXTERNAL
#EXTERNAL ,
, Web Intelligence.

#INCOMPATIBLE
#INCOMPATIBLE
.
:

, Island Resorts Marketing


( ), "" "
", , ,
#INCOMPATIBLE,
.

#MULTIVALUE
# ,
,
.
:

"", "" ""


[] ForEach ([]).
#, ""
: "" "".

246

, SAP BusinessObjects Web Intelligence

Web Intelligence


. ,
, ,
(
).
"",
, ,
"".

#

#OVERFLOW
# ,
,
Web Intelligence.
1,7E308 (1,7 307 ).

#PARTIALRESULT
#PARTIALRESULT , Web
Intelligence , .
#PARTIALRESULT
,
" ",
Web Intelligence .
,
Business Objects.
,
#PARTIALRESULT,
Web Intelligence
,
.

, SAP BusinessObjects Web Intelligence

247

Web Intelligence

#RANK
#RANK
, , .
( ,
Previous() .)
,
,
.
""
Rank().
:

,
Previous()
, #RANK .

#RECURSIVE
#RECURSIVE , Web Intelligence
- .
: NumberOfPages()

NumberOfPages()
" " "
", Web Intelligence #RECURSIVE,
. Web Intelligence
,
, (
) .

248

, SAP BusinessObjects Web Intelligence

Web Intelligence

#SECURITY
#SECURITY ,
.
: DataProviderSQL()

,
SQL, DataProviderSQL(),
#SECURITY.

#SYNTAX
#SYNTAX ,
, .
:

,
, ,
.
" ".
" ",
, , #SYNTAX.

#TOREFRESH
#TOREFRESH , ,
,
. ,
, .
#TOREFRESH .

, SAP BusinessObjects Web Intelligence

249

Web Intelligence

#UNAVAILABLE
#UNAVAILABLE , Web Intelligence
.
, Web Intelligence

.
, ,
Web Intelligence .

#ERROR
#ERROR ,
,
.

Aggregation

, Where
In, . ,
:
Sum([Measure] In ([Dim 1];[Dim 2])) In ([Dim
1]) Where ([Dim 3]="Constant")
Sum( [Measure] In ([Dim 1]) ) Where ([Dim
3]="Constant")
Max( [Measure] In ([Dim 1]) ) Where ([Dim
3]="Constant")

250

, SAP BusinessObjects Web Intelligence


Web
Intelligence

Web Intelligence
Previous


Previous
Previous
. .

RelativeValue. RelativeValue
.
.
.

Previous
RelativeValue
RelativeValue


RelativeValue
RelativeValue
.
.
RelativeValue
.
, (
- ,
)


,
(
) .
,
.

252

, SAP BusinessObjects Web Intelligence

Web Intelligence
RelativeValue

, RelativeValue
,
, ,
, .
:

,
. ,
#COMPUTATION.
:

RelativeValue
.
RelativeValue([Revenue];([Year]);-1)

[];
[];
(
).

RelativeValue

2007

1000

2007

2000

2007

1500

2007

3000

2008

4000

1000

2008

3400

2000

2008

2000

1500

2008

1700

3000

, -, Web Intelligence,
,
.

, SAP BusinessObjects Web Intelligence

253

Web Intelligence
RelativeValue

, ,
Web Intelligence [] () ,
[] ( )
[], [] []
( )
.
.

RelativeValue

RelativeValue
RelativeValue
.
, ,
.

.
:

RelativeValue
:
RelativeValue([Revenue];([Year];[Quarter]);-1)

254

[];
([];[]);
(
).

2007

1000

2007

2000

2007

1500

2007

3000*

RelativeValue

, SAP BusinessObjects Web Intelligence

Web Intelligence
RelativeValue

RelativeValue

2007

4000

2007

3400

2007

2000

2007

1700

2008

5000

3000*

2008

3000*

5000

2008

2700

3000*

2008

6800

2700

, -, Web Intelligence,
,
.
, , Web
Intelligence, [] ,
[] []
([];[]), []
.
, Web Intelligence
.

2007

2007

2007

2007

2008

, SAP BusinessObjects Web Intelligence

255

Web Intelligence
RelativeValue

2008

2008

2008


. "*" .
.

RelativeValue


.
:

RelativeValue
:
RelativeValue([Revenue];([Year];[Quarter]);-1)
2007

256

1000

2000

1500

3000*

4000

RelativeValue

, SAP BusinessObjects Web Intelligence

Web Intelligence
RelativeValue

RelativeValue

3400

2000

1700

RelativeValue

5000

3000*

3000*

5000

2700

3000*

6800

2700

2008

, Web Intelligence
.

2007

2007

2007

2007

2008

2008

2008

2008


. "*" .

, SAP BusinessObjects Web Intelligence

257

Web Intelligence
RelativeValue

RelativeValue



RelativeValue, ,
,
.
:

RelativeValue
:
RelativeValue([Revenue];([Year];[Quarter]);-1)

258

2007

1000

2007

2000

2007

1500

2007

3000*

2007

4000

2007

3400

2007

2000

2007

1700

2008

5000

RelativeValue

3000*

, SAP BusinessObjects Web Intelligence

Web Intelligence
RelativeValue

RelativeValue

2008

3000*

5000

2008

2700

3000*

2008

6800

2700

, -, Web Intelligence,
,
.
.

2007

2007

2007

2007

2008

2008

2008

2008

:
RelativeValue([Revenue];([Quarter];[Year]);-1)
.

, SAP BusinessObjects Web Intelligence

259

Web Intelligence
RelativeValue

2007

2008

2007

2008

2007

2008

2007

2008

260

2007

1000*

2007

2000*

2007

1500*

2007

3000*

2007

4000

2007

3400

2007

2000

2007

1700

2008

5000

RelativeValue

1000*

, SAP BusinessObjects Web Intelligence

Web Intelligence
RelativeValue

RelativeValue

2008

3000

2000*

2008

2700

1500*

2008

6800

3000*

, -, Web Intelligence,
,
.

. "*"
.

RelativeValue



, ,
, .
: ,

RelativeValue
:
RelativeValue([Revenue];([Year];[Quarter]);-1)
(1, 2, 4, 3) [],
.

, SAP BusinessObjects Web Intelligence

261

Web Intelligence
RelativeValue

RelativeValue

2007

1000

2007

2000

2007

3000

2007

1500*

2007

4000

2007

3400

2007

1700

2007

2000

2008

5000

1500*

2008

3000*

5000

2008

6800

3000*

2008

2700

6800

2007

2007

2007

2007

2008

2008

2008

2008

"*" .

262

, SAP BusinessObjects Web Intelligence

Web Intelligence
RelativeValue

RelativeValue

RelativeValue
-
RelativeValue - ,
. -
.
.

RelativeValue

, SAP BusinessObjects Web Intelligence

263

Web Intelligence
RelativeValue

264

, SAP BusinessObjects Web Intelligence


SAP BusinessObjects

http://www.sap.com
http://help.sap.com/businessobjects/
BusinessObjects Overview
All Products.
SAP SAP
BusinessObjects .
PDF HTML.

SAP

266

- SAP
Service Marketplace SAP. SAP Service
Marketplace. , , .
.

, SAP BusinessObjects Web Intelligence

http://service.sap.com/bosap-support >

SAP Service Marketplace

: https://service.sap.com/bosapinstguides
:
http://service.sap.com/releasenotes

- SAP Service Marketplace , , ,


. , ,
-.
. - SAP Service Marketplace SAP,
,
.
https://cw.sdn.sap.com/cw/community/docupedia

Docupedia

Docupedia
, .
https://boc.sdn.sap.com/

https://www.sdn.sap.com/irj/sdn/businessobjects-sdklibrary
https://www.sdn.sap.com/irj/boc/businessobjects-articles
SAP BusinessObjects

SAP

, SAP BusinessObjects Web Intelligence

267

https://service.sap.com/notes


https://www.sdn.sap.com/irj/scn/forums
SAP

http://www.sap.com/services/education

,
eLearning.
http://service.sap.com/bosap-support

SAP
.

-

. , , .
.
http://www.sap.com/services/bysubject/businessobjectsconsulting

268



. , ,
,
, ,

.

, SAP BusinessObjects Web Intelligence

#COMPUTATION, 244
#CONTEXT, 244
#DATASYNC, 245
#DIV/0, 245
#ERROR, 173, 175,
189, 250
#INCOMPATIBLE, 245,
246
#MULTIVALUE, 246
#OVERFLOW, 247
#PARTIALRESULT,
247
247
#RANK, 248
#RECURSIVE, 248
#SECURITY, 249
#SYNTAX, 249
#TOREFRESH, 249
#UNAVAILABLE, 250

A
All, 202, 219
And, 215
Asc, 98
Average, 66

B
Between, 216
Block, 45, 232
BlockName, 191
Bottom, 183

Break, 44, 235


Break, 220

C
Ceil, 168
Char, 99
ColumnNumber, 191
Concatenation, 99
Connection, 134
Cos, 169
Count, 68
CurrentDate, 118
CurrentTime, 119
CurrentUser, 192

D
DataProvider, 134
DataProviderKeyDate, 135
DataProviderKeyDateCaption, 136
DataProviderSQL, 137
DataProviderType, 138
DayName, 119
DayNumberOfMonth, 120
DayNumberOfWeek, 121
DayNumberOfYear, 122
DaysBetween, 122
Distinct, 221
DocumentAuthor, 149
DocumentDate, 151
DocumentName, 151
DocumentPartiallyRefreshed, 152
DocumentTime, 152
DrillFilter, 153

, SAP BusinessObjects Web Intelligence

269

E
EuroConvertFrom, 170
EuroConvertTo, 172
EuroFromRoundError, 173
EuroToRoundError, 175
Exp, 177

F
Fact, 178
Fill, 100
First, 69
Floor, 179
ForAll, 40, 230
ForceMerge, 192
ForEach, 39, 230
FormatDate, 101
FormatNumber, 102

G
GetContentLocale, 193
GetLocale, 195

H
HTMLEncode, 103

I
If, 22, 199, 214
If...Then...Else, 197
In, 37, 228
IncludeEmpty, 221
InfoView

149
InitCap, 103
InList, 22, 215, 217
Interpolation, 70, 222

270

IsDate, 159
IsError, 160
IsLogical, 161
IsNull, 162
IsNumber, 163
IsPromptAnswered, 139
IsString, 164
IsTime, 165

L
Last, 73
LastDayOfMonth, 123
LastDayOfWeek, 124
LastExecutionDate, 140
LastExecutionDuration, 141
LastExecutionTime, 142
Left, 104
LeftPad, 105
LeftTrim, 106
Length, 107
LineNumber, 201
Ln, 179
Log, 180
Log10, 181
Lower, 108

M
Match, 108
Max, 73
Median, 74
Min, 75
Mod, 181
Month 125
MonthNumberOfYear, 125
MonthsBetween, 126

N
NameOf, 201

, SAP BusinessObjects Web Intelligence

NoFilter, 202
Not, 216
NotOnBreak, 70, 223
NumberOfDataProviders, 143
NumberOfPages, 204
NumberOfRows, 144

P
Page, 204
Percentage, 77
Percentile, 80
PointToPoint, 223
Pos, 109
Power, 182
Previous, 205, 223, 226
PromptSummary, 154

Q
Quarter, 127
QuerySummary, 155

R
Rank, 183
RefValue, 209
RefValueDate, 145
RefValueUserResponse, 145
RelativeDate, 128
RelativeValue,
256
256
256, 258,
261
Replace, 110
Report, 42, 236
ReportFilter, 156
ReportFilterSummary, 157
ReportName, 212
Right, 111

RightPad, 112
RightTrim, 113
Round, 185
Row, 224
RowIndex, 212
RunningAverage, 81
RunningCount, 83
RunningMax, 85
RunningProduct, 89
RunningSum, 91

S
Section, 43, 238
Self, 226
Sign, 186
Sin, 187
SQL 137
54, 55
54
55
GROUPING SETS 57
UNION 54, 57
Sqrt, 188
StdDev, 92
StdDevP, 93
Substr, 114

T
TimeDim 129
ToDate, 131
ToNumber, 189
Trim, 115
Truncate, 190

U
UNION, 57
UniqueNameOf, 213
UniverseName, 147

, SAP BusinessObjects Web Intelligence

271

Upper, 116
URL-
117
URLEncode, 117
UserResponse, 148, 222

V
Var, 95
VarP, 96

W
Week, 132
Where, 226
WordCap, 117

Y
Year, 133

191

216
And
215

161
197, 199


170, 172


31

272


27

28

168
95

96
188
169
10 181
n 180
73
74
75
76
179
173, 175
80
83
85
87

89
80
15
77
187
81
66

92

93
94
188
91
178
177

10

, SAP BusinessObjects Web Intelligence

(())
10



33

55

128
159
101, 131

191
95
96

149

152

151
150
151
155

172
170

170, 172


113

155

239
68, 83
RelativeValue 252,
254, 256, 258, 261, 263
Previous
252
239

165

70, 223

159
163

39,
230
60
#DATASYNC 245
#INCOMPATIBLE
246
252, 254
40,
230
37, 228
252
254, 258,
261
256
258

61
54

, SAP BusinessObjects Web Intelligence

273

(())
56
60
60

#PARTIALRESULT 247
#TOREFRESH
249
#UNAVAILABLE
250
10
62
60
250
54
70, 223
223

188
Body 47, 234
Report 48

45, 232

41, 232
42, 48, 236
44, 235
43, 238
, 48
47, 234

41, 232

Average 45, 232
Sum
42, 43, 44, 47, 234, 235, 236, 238
, 48
ASCII 98
, 99

274


115
21, 99, 214
22

26, 27
26, 28

30
26
30

31
33
- 33
36
34

37

60
169
-
RelativeValue 263

33

179, 180, 181


10 181
n 180
22, 215

66



85
21, 214

, SAP BusinessObjects Web Intelligence

74

210
210

30
54


87
76

54
56
UNION 57
54
57
Web Intelligence 55
179

106, 115

158, 166

204


56
56
55
21, 99, 214

213
156
239
168
All 218, 221
And 22, 215

Between 22, 215


Bottom 219
Col 81, 85, 87, 89, 91, 224
Drill 202, 219
ForAll 48
Linear 70, 222
NoNull 205, 223
Not 22, 215
Or 22, 215
OR 215
PointToPoint 70
Row 81, 85, 87, 89, 91
Self 205
Top 183, 219
148

All 202, 218, 219, 221


And 22, 215
Between 22, 215, 216
Bottom 183, 219
Break 220
Col 81, 83, 85, 87, 89, 91, 224
Distinct 221
Drill 202, 219
ForAll 40, 48, 230
ForEach 39, 230
In 37, 228
IncludeEmpty 83, 221
InList 22, 215, 217
Linear 70, 222
NoNull 205, 223
Not 22, 215, 216
NotOnBreak 70, 223
Or 22, 215
PointToPoint 70, 223
Row 81, 83, 85, 87, 89, 91, 224
Self 205, 226
Where 226
23, 218
23, 218
148, 222
22

, SAP BusinessObjects Web Intelligence

275

(())
22, 215
21, 214
Index 222
21, 213
183, 219
22, 214

145
161
165
158, 166
160
162
164
158, 166


194

#MULTIVALUE
246
149

152

151
150
191
201
191
147

204
212
191
204

194
148

197

276

14

193

195

201
204
204
212

160
173, 175

60
12, 19

15, 145, 148


83
201
10

11

254, 258, 261
143
147
144
SQL,
137

197
172
170
197, 199


89

, SAP BusinessObjects Web Intelligence

83
80

162


36

256
RelativeValue 256

34

66


248
183
22
ForAll, 37, 227

37
Block 45, 232
Body 47, 234
Break 44, 235
Report 42, 48, 236
Section 43, 238
ForAll 37, 40, 227, 230
ForEach 37, 39, 227, 230
In 37, 227, 228

14
" ,
"
8



247

ASCII 98
ASCII 99

66

Web Intelligence 14
14
187

11
#COMPUTATION 210
#CONTEXT 245
#DATASYNC 244
#ERROR 170, 172
#EXTERNAL 246
#INCOMPATIBLE 244
#MULTIVALUE 212
#TOREFRESH 55, 60
249
#UNAVAILABLE 61
250

#COMPUTATION 210, 244
#CONTEXT 244, 245
#DATASYNC 244, 245
#DIV/0 245
#ERROR 250
#ERRPR 170, 172, 173, 175, 189
#EXTERNAL 246
#INCOMPATIBLE 244, 245, 246
#MULTIVALUE 212, 246
#OVERFLOW 247
#PARTIALRESULT 247
#RANK 248
#RECURSIVE 248
#SECURITY 249

, SAP BusinessObjects Web Intelligence

277

(())
#SYNTAX 249
#TOREFRESH 55, 60, 249
#UNAVAILABLE 61, 250
244

254, 258, 261


RelativeValue
252, 254, 256, 258, 261, 263

Previous 252

81
92

93
Average
10
Count 10
Default 10
Maximum
10
Minimum
10
Percentage
10
Sum 10
10

191

204

164

144
212
201
218
218

104

278

(())

111
107
110
105, 112
114
/ 21, 99, 214
116

117

117
189

103
100
108
URL 117
108
113, 115
106,
115

31
33
191
201
188

80, 89

12, 19
239
22, 214

, SAP BusinessObjects Web Intelligence

178

157
219
62
61
218
218
156, 157, 219
157
62
219
62
219
218

61
156, 219
219
157
102

60
60
21, 213

11
,
244
12, 19

Abs 168
Asc 98
Average 45, 66, 221, 232
BlockName 191
Ceil 168
Char 99
ColumnNumber 191
Concatenation 99
Connection 134

(())
Cos 169
Count 68, 218, 221
CurrentDate 118
CurrentTime 119
CurrentUser 192
DataProvider 134
DataProviderKeyDate 135
DataProviderKeyDateCaption 136
DataProviderSQL 137
DataProviderType 138
DayName 119
DayNumberOfMonth 120
DayNumberOfWeek 121
DayNumberOfYear 122
DaysBetween 122
DocumentAuthor 149
DocumentCreationDate 150
DocumentCreationTime 150
DocumentCreationTIme, 150
DocumentDate 151
DocumentName 151
DocumentPartiallyRefreshed 152
DocumentTime 152
DrillFilters 153
EuroConvertFrom 170, 239
EuroConvertTo 172, 239
EuroFromRoundError 173, 239
EuroToRoundError 175, 239
Even 158
Exp 177
Fact 178
Fill 100
First 69
Floor 179
ForceMerge 192
FormatDate 101
FormatNumber 102
GetContentLocale 193
GetDominantPreferredViewingLocale 194
GetLocale 195
GetLocalized 195

, SAP BusinessObjects Web Intelligence

279

(())
GetPreferredViewingLocale 197
HTMLEncode 103
If 22, 199, 214
InitCap 103
IsDate 159
IsError 160
IsLogical 161
IsNull 162
IsNumber 163
IsPromptAnswered 139
IsString 164
IsTime 165
Last 73
LastDayOfMonth 123
LastDayOfWeek 124
LastExecutionDate 140
LastExecutionDuration 141
LastExecutionTime, 142
Left 104
LeftPad 105
LeftTrim 106
Length 107
LineNumber 201
Ln 179
Log 180
Log10 181
Lower 108
Match 108
Max 39, 73, 230
Median 74
Min 75
Mod 181
Mode 76
Month 125
MonthNumberOfYear 125
MonthsBetween 126
NameOf 201
NoFilter 202, 218, 219
NumberOfDataProviders 143
NumberOfPages 204, 248
NumberOfRows 144

280

(())
Odd 166
Page 204
Percentage 15, 77, 220, 224
Percentile 80
Pos 109
Power 182
Previous 205, 223, 226, 248, 252
Product 80
PromptSummary 154
Quarter 127
QuerySummary 155
Rank 219
RefValue 209
RefValueDate 145
RefValueUserResponse 145, 222
RelativeDate 128
RelativeValue 210, 244, 252, 256, 258, 261,
263
Replace 110
ReportFilter 156
ReportFilterSummary 157
ReportName 212
Right 111
RightPad 112
RightTrim 113
Round 185, 239
RowIndex 212
RunningAverage 81, 221, 224
RunningCount 83, 221, 224
RunningMax 85, 224
RunningMin 87, 224
RunningProduct 89, 224
RunningSum 91, 224
RunningSum, 224
Sign 186
Sin 187
Sqrt 188
StdDev 92
StdDevP 93
Substr 114

, SAP BusinessObjects Web Intelligence

(())
Sum 15, 40, 42, 43, 44, 47, 48, 94, 230,
234, 235, 236, 238
Tan 188
ToDate 131
ToNumber 189
Trim 115
Truncate 190, 239
UniqueNameOf 213
UniverseName 147
Upper 116
URLEncode 117
UserResponse 15, 222
Var 95
VarP 96
Week 132
WordCap 117
Year 133
14
70, 222, 223
66
14
148
15
183
14
14
DocumentCreationDate 150
GetPreferredViewingLocale 197
Interpolation 223
Percentage 224
RunningAverage 224
RunningCount 224
RunningMax 224
RunningMin 87, 224
RunningProduct 224
Sum 94

66

66


66

66

248
#RANK 248
Abs 168
Average 221


45, 232
Count 218, 221
EuroConvertFrom 239
EuroConvertTo 239
EuroFromRoundError 239
EuroToRoundError 239
Even 158
GetDominantPreferredViewingLocale
194
GetLocalized 195
Interpolation 223
Max

39, 230
Mode 76
NoFilter 218, 219
NumberOfPages
#RECURSIVE
248
Odd 166
Percentage 15
Previous
#RANK 248
252
Product 80
Rank 219
RefValueUserResponse 222
RelativeValue 210
254, 261
- 263

, SAP BusinessObjects Web Intelligence

281

RelativeValue (())
#COMPUTATION
244
252, 254,
263
Round 239
RunningAverage 221
RunningCount 221
Sum 15


42, 43, 44, 47, 48, 234, 235, 236, 238

40, 230
Tan 188
Truncate 239
UserResponse 15

(())
80, 89
190
190
102

66


158, 166

182
181
181
163
181
168, 185
179
185
179
/ 158,
166
189


193

195



194

193

195

14
14

282

177

147

, SAP BusinessObjects Web Intelligence

Вам также может понравиться