forked from scrambldchannel/tm1-model-pony-music-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rate BOM.rules
222 lines (213 loc) · 10.1 KB
/
Rate BOM.rules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
#Region System
FEEDSTRINGS;
SKIPCHECK;
#EndRegion
#Region National BOM Averaging Factor
['BOM Averaging Factor'] = N: (DB('Rate BOM', 'Total Plants', !Product, 'Total Local BOM', !year, !version)/6)-DB('Rate BOM', !Plant, !Product, 'Total Local BOM', !year, !Version);
#EndRegion
#Region C-Calculation rules: Dimension:Rate Measure
#Autogenerated CALC CONSOLIDATED 52617465204D656173757265
#Region Dimension:Rate Measure, Member:RM 1
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B524D20315D
#@AutoGenerated
['Rate Measure':{'RM 1'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:RM 2
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B524D20325D
#@AutoGenerated
['Rate Measure':{'RM 2'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:RM 3
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B524D20335D
#@AutoGenerated
['Rate Measure':{'RM 3'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:RM 4
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B526177204D6174657269616C5E524D20345D
#@AutoGenerated
['Rate Measure':{'RM 4'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:RM 5
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B526177204D6174657269616C5E524D20355D
#@AutoGenerated
['Rate Measure':{'RM 5'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:RM 7
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B526177204D6174657269616C5E524D20375D
#@AutoGenerated
['Rate Measure':{'RM 7'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:RM 8
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B524D20385D
#@AutoGenerated
['Rate Measure':{'RM 8'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:PM 1
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B5061636B6167696E67204D6174657269616C5E504D20315D
#@AutoGenerated
['Rate Measure':{'PM 1'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:PM 2
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B5061636B6167696E67204D6174657269616C5E504D20325D
#@AutoGenerated
['Rate Measure':{'PM 2'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:PM 3
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B5061636B6167696E67204D6174657269616C5E504D20335D
#@AutoGenerated
['Rate Measure':{'PM 3'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:PM 4
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B5061636B6167696E67204D6174657269616C5E504D20345D
#@AutoGenerated
['Rate Measure':{'PM 4'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:PM 5
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B5061636B6167696E67204D6174657269616C5E504D20355D
#@AutoGenerated
['Rate Measure':{'PM 5'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:PM 6
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B504D20365D
#@AutoGenerated
['Rate Measure':{'PM 6'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:PM 7
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B504D20375D
#@AutoGenerated
['Rate Measure':{'PM 7'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:PM 8
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B504D20385D
#@AutoGenerated
['Rate Measure':{'PM 8'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:Direct labor
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B446972656374206C61626F725D
#@AutoGenerated
['Rate Measure':{'Direct labor'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:Average Local BOM
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B41766572616765204C6F63616C20424F4D5D
#@AutoGenerated
['Rate Measure':{'Average Local BOM'}]=C:ConsolidatedAvg(2, '', !Month, !Plant, !product, 'Average Local BOM', !Year, !Version);
#EndRegion
#Region Dimension:Rate Measure, Member:Commodity 3
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B436F6D6D6F6469747920335D
#@AutoGenerated
['Rate Measure':{'Commodity 3'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:Commodity 1
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B436F6D6D6F6469747920315D
#@AutoGenerated
['Rate Measure':{'Commodity 1'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:Commodity 2
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B436F6D6D6F6469747920325D
#@AutoGenerated
['Rate Measure':{'Commodity 2'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:Commodities
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B436F6D6D6F6469746965735D
#@AutoGenerated
['Rate Measure':{'Commodities'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:National Average BOM
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B4E6174696F6E616C204176657261676520424F4D5D
#@AutoGenerated
['Rate Measure':{'National Average BOM'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:BOM Averaging Factor
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B424F4D20417665726167696E6720466163746F725D
#@AutoGenerated
['Rate Measure':{'BOM Averaging Factor'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:Total Local BOM
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B546F74616C204C6F63616C20424F4D5D
#@AutoGenerated
['Rate Measure':{'Total Local BOM'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:Raw Material
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B526177204D6174657269616C5D
#@AutoGenerated
['Rate Measure':{'Raw Material'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:Packaging Material
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B5061636B6167696E67204D6174657269616C5D
#@AutoGenerated
['Rate Measure':{'Packaging Material'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#Region Dimension:Rate Measure, Member:RM 6
#Autogenerated MEMBERCALC CONSOLIDATED 5B52617465204D6561737572655D2E5B526177204D6174657269616C5E524D20365D
#@AutoGenerated
['Rate Measure':{'RM 6'}]=C:IF(DTYPE('Month', !Month)@='C',
ConsolidateChildren('Month')\ELCOMPN('Month', !Month),
CONTINUE);
#EndRegion
#EndRegion
#Region N-Calculation rules: Dimension:Rate Measure
#Autogenerated CALC NUMERIC 52617465204D656173757265
#Region Dimension:Rate Measure, Member:Average Local BOM
#Autogenerated MEMBERCALC NUMERIC 5B52617465204D6561737572655D2E5B41766572616765204C6F63616C20424F4D5D
#@AutoGenerated
['Rate Measure':{'Average Local BOM'}]=N:['Rate Measure':'Packaging Material']+['Rate Measure':'Raw Material']+['Rate Measure':'Direct labor'];
#EndRegion
#EndRegion
FEEDERS;
#Region BOM Avg Factor Feeder
['Total Local BOM'] => ['BOM Averaging Factor'];
#EndRegion
#Region Automatically generated feeders
#Autogenerated AUTOFEEDERS
['Rate Measure':{'Raw Material', 'Packaging Material', 'Direct labor'}, 'Version':{'Version 1', 'Performance Variance', 'Target vs Prior Year Actual %', 'Ccy Exchange Variance', 'Variance%', 'Prior Year Actual', 'Variance', 'Dashboard', 'Target', 'Volume Variance', 'Predictive', 'Zero', 'DashboardCA', 'Predictivev2', 'Target vs Prior Year Actual', 'Version 2', 'Actual', 'Forecast', 'Rate Variance'}] => ['Rate Measure':'Average Local BOM'];
#EndRegion