~openerp-community/openobject-doc/ksa-openobject-doc-6.0

« back to all changes in this revision

Viewing changes to i18n/ru/source/bi/MDXOverview/examples.rst

  • Committer: Don Kirkby
  • Date: 2011-02-21 20:46:11 UTC
  • mfrom: (433.1.53 openobject-doc)
  • Revision ID: donkirkby+launpd@gmail.com-20110221204611-1ykt6dmg4k3gh5dh
[MERGE] revisions 477 to 486 from the 5.0 branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
.. i18n: A look at few examples to write MDX Queries
 
3
.. i18n: -------------------------------------------
 
4
..
 
5
 
 
6
A look at few examples to write MDX Queries
 
7
-------------------------------------------
 
8
 
 
9
.. i18n: Writing a simple MDX on a SALES Schema::
 
10
.. i18n: 
 
11
.. i18n:     select 
 
12
.. i18n:       {[partner_country].[all]} on rows,
 
13
.. i18n:       {[measures].[Items Sold]} on columns
 
14
.. i18n:     from sale_order_line
 
15
..
 
16
 
 
17
Writing a simple MDX on a SALES Schema::
 
18
 
 
19
    select 
 
20
      {[partner_country].[all]} on rows,
 
21
      {[measures].[Items Sold]} on columns
 
22
    from sale_order_line
 
23
 
 
24
.. i18n: Gives results as,
 
25
..
 
26
 
 
27
Gives results as,
 
28
 
 
29
.. i18n: ===================== ============
 
30
.. i18n:  /                     Items Sold
 
31
.. i18n: ===================== ============
 
32
.. i18n:  All partner_country     [43.0]
 
33
.. i18n: ===================== ============
 
34
..
 
35
 
 
36
===================== ============
 
37
 /                     Items Sold
 
38
===================== ============
 
39
 All partner_country     [43.0]
 
40
===================== ============
 
41
 
 
42
.. i18n: Expanding the partner country to its children, we change the MDX as.::
 
43
.. i18n: 
 
44
.. i18n:     select 
 
45
.. i18n:        {[partner_country].[all],[partner_country].children} on rows, 
 
46
.. i18n:        {[measures].[Items Sold]} on columns 
 
47
.. i18n:     from sale_order_line
 
48
..
 
49
 
 
50
Expanding the partner country to its children, we change the MDX as.::
 
51
 
 
52
    select 
 
53
       {[partner_country].[all],[partner_country].children} on rows, 
 
54
       {[measures].[Items Sold]} on columns 
 
55
    from sale_order_line
 
56
 
 
57
.. i18n: Gives result as,
 
58
..
 
59
 
 
60
Gives result as,
 
61
 
 
62
.. i18n: ===================== ============
 
63
.. i18n:  /                     Items Sold
 
64
.. i18n: ===================== ============
 
65
.. i18n:  All partner_country   [43.0]
 
66
.. i18n:  Belgium               [30.0]
 
67
.. i18n:  China                 [4.0]
 
68
.. i18n:  France                [9.0]
 
69
.. i18n: ===================== ============
 
70
..
 
71
 
 
72
===================== ============
 
73
 /                     Items Sold
 
74
===================== ============
 
75
 All partner_country   [43.0]
 
76
 Belgium               [30.0]
 
77
 China                 [4.0]
 
78
 France                [9.0]
 
79
===================== ============
 
80
 
 
81
.. i18n: One more example bit complex with slicer::
 
82
.. i18n: 
 
83
.. i18n:     select 
 
84
.. i18n:       {[date_order].children,[date_order].[2008].children,[date_order].[2008].[Q2].children},
 
85
.. i18n:       {[measures].[Items Sold]} 
 
86
.. i18n:     from sale_order_line 
 
87
.. i18n:     where ([date_order].[2008])
 
88
..
 
89
 
 
90
One more example bit complex with slicer::
 
91
 
 
92
    select 
 
93
      {[date_order].children,[date_order].[2008].children,[date_order].[2008].[Q2].children},
 
94
      {[measures].[Items Sold]} 
 
95
    from sale_order_line 
 
96
    where ([date_order].[2008])
 
97
 
 
98
.. i18n: Gives results as:
 
99
..
 
100
 
 
101
Gives results as:
 
102
 
 
103
.. i18n: ===================== ============
 
104
.. i18n:  /                     Items Sold
 
105
.. i18n: ===================== ============
 
106
.. i18n:  2008.0                  [43.0]
 
107
.. i18n:  Q1                      [43.0]
 
108
.. i18n: ===================== ============
 
109
..
 
110
 
 
111
===================== ============
 
112
 /                     Items Sold
 
113
===================== ============
 
114
 2008.0                  [43.0]
 
115
 Q1                      [43.0]
 
116
===================== ============