formula format

 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
formula = {
operands: [{
'type': 'events'
'name': 'Application Opened'
}, {
'type': 'users'
'name': 'Application Opened'
}, {
'type': 'constatnt',
'name': '?',
'value': 0.5
}, {
'type': 'constant',
'name': '?',
'value': 3.68
}],
operation: 'multiply'
}
data = [{
'events': {
'Application Opened': 10,
'Launch': 5,
...
},
'users': {
'Application Opened': 6,
'Launch': 4,
...
}
}, {
'events': {
'Application Opened': 4,
'Launch': 3,
...
},
'users': {
'Application Opened': 2,
'Launch': 2,
...
}
}]