|
Comparisons are easy with nextanalytics! In this example, you'll see how to compare numbers to the column average, and express the results as a percentage.
Load the sales data
Script
-
adddata , actuals.csv
This is sample data that will be used to demonstrate how easy it is to convert data into a percent of the column average
| Name |
Region |
Position |
01/06 |
02/06 |
03/06 |
04/06 |
05/06 |
06/06 |
07/06 |
08/06 |
09/06 |
10/06 |
11/06 |
12/06 |
| Ted Burton |
Central |
Account Manager |
33,900 |
62,100 |
106,200 |
37,100 |
115,600 |
151,700 |
58,500 |
102,400 |
177,700 |
83,000 |
133,600 |
210,400 |
| Nell Gordon |
Central |
Sr. Account Manager |
87,200 |
172,700 |
300,100 |
85,700 |
49,400 |
47,500 |
68,700 |
11,400 |
123,200 |
109,200 |
202,100 |
152,400 |
| Bonnie Mills |
Central |
Account Manager |
25,800 |
75,100 |
77,300 |
71,500 |
32,900 |
14,700 |
44,000 |
13,400 |
227,000 |
98,400 |
120,000 |
173,800 |
| Juan Perez |
Central |
Account Manager |
25,000 |
32,900 |
117,600 |
67,900 |
104,600 |
62,700 |
55,600 |
54,800 |
18,000 |
18,500 |
109,600 |
233,000 |
| Jonathan Ryan |
Central |
Account Representative |
0 |
0 |
0 |
0 |
0 |
0 |
16,600 |
32,000 |
34,800 |
6,700 |
4,800 |
84,800 |
| Marcus Saul |
Central |
Account Manager |
25,000 |
46,000 |
22,500 |
25,800 |
76,400 |
199,200 |
11,100 |
67,800 |
203,300 |
44,100 |
65,300 |
193,500 |
| Jerry Wong |
Central |
Sr. Account Manager |
99,000 |
159,700 |
63,200 |
7,200 |
169,700 |
286,200 |
83,700 |
231,600 |
251,700 |
155,600 |
208,000 |
314,900 |
| Will Hill |
Federal |
Account Representative |
16,200 |
15,700 |
22,300 |
13,500 |
43,100 |
29,900 |
11,900 |
46,600 |
44,200 |
32,000 |
6,100 |
122,600 |
| Gil Jacobs |
Federal |
Account Manager |
57,600 |
42,500 |
88,200 |
23,600 |
74,700 |
186,400 |
66,400 |
113,700 |
214,900 |
18,300 |
142,700 |
198,700 |
| Larry Kelley |
Federal |
Account Manager |
1,200 |
22,900 |
97,400 |
68,700 |
99,200 |
38,100 |
86,900 |
107,600 |
31,700 |
63,900 |
109,500 |
203,800 |
Compare to the column average
Script (continued)
-
Compare , ToAxis , PercentOf , Average , Column ,,,0,0,0,0,False,False,Current
-
ChangeAlertTo,axis,-1,Column,Average,0,True,bright,-1
The column averages are dynamically calculated and then all the values are converted to being a percent of that average. With a simple one line command, a powerful dynamic metric is created. Such newly created metrics can become the basis of further operations and used to drive other analytical steps that follow. Note: The color coding (through alerts) is optional and, in this case, we've applied the color coding by comparing against the column average.
| Name |
Region |
Position |
01/06 |
02/06 |
03/06 |
04/06 |
05/06 |
06/06 |
07/06 |
08/06 |
09/06 |
10/06 |
11/06 |
12/06 |
| Ted Burton |
Central |
Account Manager |
92 |
98 |
112 |
96 |
148 |
128 |
131 |
122 |
145 |
141 |
176 |
144 |
| Nell Gordon |
Central |
Sr. Account Manager |
238 |
271 |
317 |
222 |
63 |
40 |
154 |
14 |
100 |
185 |
266 |
104 |
| Bonnie Mills |
Central |
Account Manager |
70 |
118 |
82 |
186 |
42 |
12 |
98 |
16 |
185 |
167 |
158 |
119 |
| Juan Perez |
Central |
Account Manager |
68 |
52 |
124 |
176 |
134 |
53 |
124 |
65 |
15 |
31 |
144 |
159 |
| Jonathan Ryan |
Central |
Account Representative |
0 |
0 |
0 |
0 |
0 |
0 |
37 |
38 |
28 |
11 |
6 |
58 |
| Marcus Saul |
Central |
Account Manager |
68 |
72 |
24 |
67 |
98 |
168 |
25 |
81 |
165 |
75 |
86 |
132 |
| Jerry Wong |
Central |
Sr. Account Manager |
270 |
251 |
67 |
19 |
217 |
242 |
187 |
276 |
205 |
264 |
274 |
215 |
| Will Hill |
Federal |
Account Representative |
44 |
25 |
24 |
35 |
55 |
25 |
27 |
56 |
36 |
54 |
8 |
84 |
| Gil Jacobs |
Federal |
Account Manager |
157 |
67 |
93 |
61 |
96 |
157 |
149 |
136 |
175 |
31 |
188 |
136 |
| Larry Kelley |
Federal |
Account Manager |
3 |
36 |
103 |
178 |
127 |
32 |
194 |
128 |
26 |
108 |
144 |
139 |
|