~openerp-community/openobject-doc/6.1

« back to all changes in this revision

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

  • Committer: TruongSinh Tran
  • Date: 2009-07-19 19:02:35 UTC
  • Revision ID: truongsinh@vipescoserver-20090719190235-fu3bxcrbpvwuk5h7
[FIX] build_i18n.py .. raw:: html

Show diffs side-by-side

added added

removed removed

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