Sei sulla pagina 1di 41
© 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

© 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

Training objectives

2

What will you be able to do at the end of the training?

Build Anatella scripts to transform data.

Extract and load data to and from Anatella.

Become proficient at using Anatella.

and from Anatella. • Become proficient at using Anatella. Presentation Exercises © 2014 TIMi S.A.S. –
and from Anatella. • Become proficient at using Anatella. Presentation Exercises © 2014 TIMi S.A.S. –
Presentation
Presentation
• Become proficient at using Anatella. Presentation Exercises © 2014 TIMi S.A.S. – TIMi: Faster
Exercises
Exercises

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

proficient at using Anatella. Presentation Exercises © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

3

3 Training Agenda • What is Anatella • The Anatella Environment • Basic Operations of Anatella

Training Agenda

What is Anatella

The Anatella Environment

Basic Operations of Anatella

Anatella boxes you cannot live without

Practical exercise

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

you cannot live without • Practical exercise © 2014 TIMi S.A.S. – TIMi: Faster predictions, better

4

What is Anatella?

Anatella is an ETL: it extracts, transforms, and loads data

Anatella is a data Transformation tool

known as an “ETL tool”, an acronym for “Extract, Transform and Load”

Data file
Data file
Extract
Extract
for “Extract, Transform and Load” Data file Extract Transformations Load Transfomed results © 2014 TIMi S.A.S.

Transformations

Transformations
Transformations
Transformations
Load
Load
Transfomed results
Transfomed
results

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

Extract Transformations Load Transfomed results © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.
is user-friendly . Anatella is User-Friendly: • Most data-transformations are meta-data-free : you don’t need

is user-friendly.

Anatella is User-Friendly:

Most data-transformations are meta-data-free: you don’t need to care about the meta-type of a column. In this regard, Anatella is like MS-Excel: In MS-Excel, you don’t need to specify the data-type of your columns/cells, neither do you in Anatella. Anatella is only slightly more complex than MS-Excel.

Most data-transformations are code-free: You only need to connect "boxes":

Filter

(where)

Group by

order by

to connect "boxes": Filter (where) Group by order by Select education, count (education) as count from
to connect "boxes": Filter (where) Group by order by Select education, count (education) as count from
to connect "boxes": Filter (where) Group by order by Select education, count (education) as count from
to connect "boxes": Filter (where) Group by order by Select education, count (education) as count from

Select education, count (education) as count from table where sex="Female" group by education order by count

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

group by education order by count © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.
group by education order by count © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

The advantage of Antella

6

Fast to execute & debug, easier to understand

Fast to execute

It has been optimized to the maximum

Fast to debug

Data can be viewed after each step (not only at the final output)

Easy to understand graphic interface accessible to non-programmers

Step-by-step logic; no coding required.

SQL

• Step-by-step logic; no coding required. S Q L © 2014 TIMi S.A.S. – TIMi: Faster
• Step-by-step logic; no coding required. S Q L © 2014 TIMi S.A.S. – TIMi: Faster
• Step-by-step logic; no coding required. S Q L © 2014 TIMi S.A.S. – TIMi: Faster
• Step-by-step logic; no coding required. S Q L © 2014 TIMi S.A.S. – TIMi: Faster

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

Anatella

logic; no coding required. S Q L © 2014 TIMi S.A.S. – TIMi: Faster predictions, better
6
6

7

7 Training Agenda • What is Anatella • The Anatella Environment • Basic Operations of Anatella

Training Agenda

What is Anatella

The Anatella Environment

Basic Operations of Anatella

Anatella boxes you cannot live without

Practical exercise

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

you cannot live without • Practical exercise © 2014 TIMi S.A.S. – TIMi: Faster predictions, better

The Anatella environment

8

Anatella has a user friendly interface with no coding required.

Menu: Menus list for quick actions. Data Table: Results of action displayed here Action Properties:
Menu:
Menus list for quick
actions.
Data Table:
Results of
action
displayed here
Action Properties:
Log:
Where action box
properties are modified
Log file of actions
and transformations
kept here
© 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.
Log file of actions and transformations kept here © 2014 TIMi S.A.S. – TIMi: Faster predictions,

The Anatella environment

9

Data is Extracted, Transformed and Loaded in an

easy intuitive way

Extraction from scratch, from text files, from gel, from DB Transformations on the data: sorts,
Extraction from
scratch, from text
files, from gel, from
DB
Transformations on
the data: sorts,
aggregations,
calculations, graph
analysis, …
Load into flat files,
gel, DB
© 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.
graph analysis, … Load into flat files, gel, DB © 2014 TIMi S.A.S. – TIMi: Faster

10

10 Training Agenda • What is Anatella • The Anatella Environment • Basic Operations of Anatella

Training Agenda

What is Anatella

The Anatella Environment

Basic Operations of Anatella

Anatella boxes you cannot live without

Practical exercise

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

you cannot live without • Practical exercise © 2014 TIMi S.A.S. – TIMi: Faster predictions, better

Building and running Anatella scripts

11

Anatella transforms graphs composed of linked

boxes using arrows

Arrows indicate that the data at the output pin of one box is used as
Arrows indicate that the data at
the output pin of one box is used
as input for the following box
Boxes indicate
operations on
the underlying
data
The flag is used to show the
termination of the graph

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

flag is used to show the termination of the graph © 2014 TIMi S.A.S. – TIMi:

Building and running Anatella scripts

Example of how to build a transformation graph

12

1. Select the “connect” mode to build arrows. In this mode, click on the output
1. Select the “connect” mode to build arrows. In this
mode, click on the output pin of the outgoing box then
on the input pin of the incoming box to create an arrow
2. Drag and drop boxes
From the right panel to
the middle frame to add
them to the graph
3. Double-click on a
4. Right-clicking on the
box to edit its
properties in the
lower left frame
flag and selecting the
green arrow will run
the complete graph

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

the green arrow will run the complete graph © 2014 TIMi S.A.S. – TIMi: Faster predictions,

Building and running Anatella scripts

13

Testing scripts for intermmediate results

In run mode, when clicking on an Click on “run” to switch to run mode
In run mode, when clicking on an
Click on “run” to
switch to run mode
output pin, the graph runs from
the last saved result till this
output pin
The status bar
shows the
overall
progress of the
calculation
This icon (the rotating
cube) shows that the
box is currently running
rotating cube) shows that the box is currently running © 2014 TIMi S.A.S. – TIMi: Faster

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

cube) shows that the box is currently running © 2014 TIMi S.A.S. – TIMi: Faster predictions,

Building and running Anatella scripts Running a transformation graph

Box

Description

14

Run to finish line:
Run to finish line:

Click on this flag to run the graph from the last cached point to the flag. This is a very useful method of testing scripts efficiently and quickly however it is not advised to production situations.

however it is not advised to production situations. Delete all caches and run to finish line:
however it is not advised to production situations. Delete all caches and run to finish line:
however it is not advised to production situations. Delete all caches and run to finish line:

Delete all caches and run to finish line:

Click on this flag to run the graph from the beginning of the graph until the flag. This

method deletes all saved caches on the graphs. It is best practice to use this method

in production.

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

is best practice to use this method in production. © 2014 TIMi S.A.S. – TIMi: Faster

15

15 Training Agenda • What is Anatella • The Anatella Environment • Basic Operations of Anatella

Training Agenda

What is Anatella

The Anatella Environment

Basic Operations of Anatella

Most essential Anatella boxes

Practical exercise

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

essential Anatella boxes • Practical exercise © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

Operations of Standard Boxes

16

It is important to understand the most commonly

used boxes.

Extraction and Loading

the most commonly used boxes. Extraction and Loading Automation Transformation © 2014 TIMi S.A.S. – TIMi:

Automation

most commonly used boxes. Extraction and Loading Automation Transformation © 2014 TIMi S.A.S. – TIMi: Faster
most commonly used boxes. Extraction and Loading Automation Transformation © 2014 TIMi S.A.S. – TIMi: Faster

Transformation

used boxes. Extraction and Loading Automation Transformation © 2014 TIMi S.A.S. – TIMi: Faster predictions, better

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

Extraction and Loading Automation Transformation © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

17

Extraction boxes

Boxes

17 Extraction boxes Boxes Description Extraction types: The boxes above are used for extracting data from

Description

Extraction types:

The boxes above are used for extracting data from flat file or

from Gel files. Gel files are highly optimized data file formats that is unique to the Anatella software.

Example of box parameters: Read .csv

File name Column delimiter
File name
Column
delimiter
of box parameters: Read .csv File name Column delimiter © 2014 TIMi S.A.S. – TIMi: Faster

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

parameters: Read .csv File name Column delimiter © 2014 TIMi S.A.S. – TIMi: Faster predictions, better

18

Automation boxes

Box

18 Automation boxes Box Description Global runner : Often scripts will be required to run automatically.

Description

Global runner :

Often scripts will be required to run automatically. The global runner box is used as

an “end” box for a script. In Anatella’s top menu there is a global runner icon, if that

is clicked, all boxes linked to a global runner box will run.

clicked, all boxes linked to a global runner box will run. © 2014 TIMi S.A.S. –

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

all boxes linked to a global runner box will run. © 2014 TIMi S.A.S. – TIMi:

19

Automation boxes

Box

Description

19 Automation boxes Box Description Parallel run: The parallel run box is used to run a
19 Automation boxes Box Description Parallel run: The parallel run box is used to run a

Parallel run:

The parallel run box is used to run a series of Anatella scripts using one script. Often scripts are built in isolation to do a certain transformation, the parallel run box

allows users to create a list of scripts and runs all the scripts in the specified order.

of scripts and runs all the scripts in the specified order. © 2014 TIMi S.A.S. –

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

and runs all the scripts in the specified order. © 2014 TIMi S.A.S. – TIMi: Faster

20

Transformation boxes

Box

20 Transformation boxes Box Description Append box: This box is used to append on table to

Description

Append box:

This box is used to append on table to another. It is equivalent to a “UNION” statement in SQL

Office

Agent

Amount

DBN

Adam

R 400

JHB

Paul

R 450

CPT

Lilly

R620

GMR

Jenny

R300

Office

Agent

Amount

PTA

Dela

R 320

ELN

Chris

R 470

CPT

Adam

R 800

JHB

John

R 120

Union

Office

Agent

Amount

DBN

Adam

R 400

JHB

Paul

R 450

CPT

Lilly

R620

GMR

Jenny

R300

PTA

Dela

R 320

ELN

Chris

R 470

CPT

Adam

R 800

JHB

John

R 120

R 470 CPT Adam R 800 JHB John R 120 © 2014 TIMi S.A.S. – TIMi:
R 470 CPT Adam R 800 JHB John R 120 © 2014 TIMi S.A.S. – TIMi:
R 470 CPT Adam R 800 JHB John R 120 © 2014 TIMi S.A.S. – TIMi:
R 470 CPT Adam R 800 JHB John R 120 © 2014 TIMi S.A.S. – TIMi:

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

CPT Adam R 800 JHB John R 120 © 2014 TIMi S.A.S. – TIMi: Faster predictions,

21

Transformation boxes

Box

21 Transformation boxes Box Description Single Join box: Used to joining two tables on a specific

Description

Single Join box:

Used to joining two tables on a specific key value. The key value must be sorted beforehand.

Office Agent Amount DBN Adam R 400 JHB Paul R 450 CPT Lilly R620 GMR
Office
Agent
Amount
DBN
Adam
R 400
JHB
Paul
R 450
CPT
Lilly
R620
GMR
Jenny
R300
Office
Area
JHB
63
DBN
21
PTA
83
CPT
112

Left Join

 

Office

Agent

Amount

Area

DBN

Adam

R 400

21

JHB Paul R 450 63

JHB

Paul

R 450

63

CPT

Lilly

R620

112

GMR

Jenny

R300

 

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

R620 112 GMR Jenny R300   © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

22

Transformation boxes

Box

22 Transformation boxes Box Description Single Join box: Used to joining two tables on a specific

Description

Single Join box:

Used to joining two tables on a specific key value. The key value must be sorted beforehand.

Office

Agent

Amount

DBN

Adam

R 400

JHB

 

Paul

R 450

CPT

Lilly

R620

GMR

Jenny

R300

 

Office

Area

JHB

63

DBN

21

PTA

83

CPT

112

Inner Join

Office

Agent

Amount

Area

DBN

Adam

R 400

21

JHB

Paul

R 450

63

CPT

Lilly

R620

112

JHB Paul R 450 63 CPT Lilly R620 112 © 2014 TIMi S.A.S. – TIMi: Faster
JHB Paul R 450 63 CPT Lilly R620 112 © 2014 TIMi S.A.S. – TIMi: Faster
JHB Paul R 450 63 CPT Lilly R620 112 © 2014 TIMi S.A.S. – TIMi: Faster

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

Paul R 450 63 CPT Lilly R620 112 © 2014 TIMi S.A.S. – TIMi: Faster predictions,

23

Transformation boxes

Box

23 Transformation boxes Box Description Single Join box: Used to joining two tables on a specific

Description

Single Join box:

Used to joining two tables on a specific key value. The key value must be sorted beforehand.

Office

Agent

Amount

DBN

Adam

R 400

JHB

 

Paul

R 450

CPT

Lilly

R620

GMR

Jenny

R300

 

Office

Area

JHB

63

DBN

21

PTA

83

CPT

112

Full Outer Join

Office

Agent

Amount

Area

DBN

Adam

R 400

21

JHB

Paul

R 450

63

CPT

Lilly

R620

112

GMR

Jenny

R300

 

PTA

 

83

112 GMR Jenny R300   PTA   83 © 2014 TIMi S.A.S. – TIMi: Faster predictions,
112 GMR Jenny R300   PTA   83 © 2014 TIMi S.A.S. – TIMi: Faster predictions,
112 GMR Jenny R300   PTA   83 © 2014 TIMi S.A.S. – TIMi: Faster predictions,

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

GMR Jenny R300   PTA   83 © 2014 TIMi S.A.S. – TIMi: Faster predictions, better

24

Transformation boxes

Box

24 Transformation boxes Box Description Multi Join box: Similar to the single join key, however tables

Description

Multi Join box:

Similar to the single join key, however tables can be joined on multiple join keys specified by

the user. The keys do not have to sorted as the complete slave tables will be stored in memory.

Office Agent Amount DBN Adam R 400 JHB Paul R 450 CPT Lilly R620 GMR
Office
Agent
Amount
DBN
Adam
R
400
JHB
Paul
R
450
CPT
Lilly
R620
GMR
Jenny
R300
Office
Area
JHB
63
DBN
21
PTA
83
CPT
112
Agent
Target
Adam
R
750
Lilly
R
750
Michel
R
650

Multiple Left Join

 

Office

Agent

Amount

Area

Target

DBN

Adam

R

400

21

R 750

JHB Paul R 450 63  

JHB

Paul

R

450

63

 

CPT

Lilly

R620

112

R 750

GMR

Jenny

R300

 
24
24

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

25

Transformation boxes

Box

25 Transformation boxes Box Description Sort box: This box is used to sort data. It is

Description

Sort box:

This box is used to sort data. It is very commonly used in Anatella as a mandatory task to do before other tasks can be complete. For example, data has to be sorted on the join key before joining.

Office

Agent

Amount

 

Office

Agent

Amount

DBN

Adam

R

400

DBN Adam R 400 CPT Lilly R 620
DBN Adam R 400 CPT Lilly R 620
DBN Adam R 400 CPT Lilly R 620

CPT

Lilly

R

620

JHB

Paul

R

450

JHB

Paul

R

450

CPT

Lilly

R

620

DBN

Adam

R

400

GMR

Jenny

R

300

 

GMR

Jenny

R

300

GMR Jenny R 300   GMR Jenny R 300 © 2014 TIMi S.A.S. – TIMi: Faster

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

Jenny R 300   GMR Jenny R 300 © 2014 TIMi S.A.S. – TIMi: Faster predictions,

26

Transformation boxes

Box

26 Transformation boxes Box Description Aggregation box: All aggregation processes are done with this box. It

Description

Aggregation box:

All aggregation processes are done with this box. It is equivalent to a “GROUP BY” statement in SQL.

Office

Agent

Amount

DBN

Adam

R 400

JHB

Paul

R 450

CPT

Lilly

R620

GMR

Jenny

R300

PTA

Dela

R 320

ELN

Chris

R 470

CPT

Adam

R 800

JHB

John

R 120

R 470 CPT Adam R 800 JHB John R 120 Office Amount_sum DBN R 400 JHB
R 470 CPT Adam R 800 JHB John R 120 Office Amount_sum DBN R 400 JHB
R 470 CPT Adam R 800 JHB John R 120 Office Amount_sum DBN R 400 JHB

Office

Amount_sum

DBN

R

400

JHB

R

570

CPT

R 1420

GMR

R300

PTA

R

320

ELN

R 470

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

GMR R300 PTA R 320 ELN R 470 © 2014 TIMi S.A.S. – TIMi: Faster predictions,

27

Transformation boxes

Box

27 Transformation boxes Box Description Data type wizard box: Used to convert data types. For example
27 Transformation boxes Box Description Data type wizard box: Used to convert data types. For example
27 Transformation boxes Box Description Data type wizard box: Used to convert data types. For example

Description

Data type wizard box:

Used to convert data types. For example change integers to float values or to string values

String manipulation box:

This box is used to treat/clean strings (text). E.g.: remove brackets, convert all letters to capitals of replace words with other words.

Column rename box:

This box is used to rename columns in your data. It is often useful to use before loading the data to Excel/Tableau/Qlickview.

to use before loading the data to Excel/Tableau/Qlickview. Column selection box: This box is used to
to use before loading the data to Excel/Tableau/Qlickview. Column selection box: This box is used to

Column selection box:

This box is used to choose certain columns in the data. It is equivalent to a “SELECT” statement in SQL.

Date formatter box:

This is box is used to format dates to a specific format.

For example, “2012-02-02” to “12/02/02”

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

For example, “2012 -02- 02” to “12/02/02” © 2014 TIMi S.A.S. – TIMi: Faster predictions, better

28

Transformation boxes

Box

28 Transformation boxes Box Description Calculator box: Used to perform calculations based on several columns and

Description

Calculator box:

Used to perform calculations based on several columns and various data types.

With this box, you can create and/or updates columns. Below are examples of how to use this box. Use the help tab for more information about available functions:

Calculating Profit:

Qty * (Price_per_unit Cost_per_unit)

Profit: Qty * (Price_per_unit – Cost_per_unit) Concatenate name and surname name // ” - ” //

Concatenate name and surname

name//-//surname

Return a “yes” if x is > 10:

X>10? “yes” : ”no”

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

if x is > 10: X>10 ? “yes” : ”no” © 2014 TIMi S.A.S. – TIMi:

29

Transformation boxes

Box

29 Transformation boxes Box Description Calculator box: Used to perform calculations based on several columns and

Description

Calculator box:

Used to perform calculations based on several columns and various data types.

With this box, you can create and/or updates columns. Below are examples of how

to use this box. Use the help tab for more information about available functions:

Calculating Profit example:

Qty * (Price_per_unit Cost_per_unit)

Office

Price per unit

Cost per unit

Quantity

Profit

Yokohama Tires

R 40

R 30

1200

R 12 000

Dunlop Tires

R 57

R 45

1400

R 16 800

12 000 Dunlop Tires R 57 R 45 1400 R 16 800 © 2014 TIMi S.A.S.

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

Dunlop Tires R 57 R 45 1400 R 16 800 © 2014 TIMi S.A.S. – TIMi:

30

Transformation boxes

Box

30 Transformation boxes Box Description Calculator box: Used to perform calculations based on several columns and

Description

Calculator box:

Used to perform calculations based on several columns and various data types.

With this box, you can create and/or updates columns. Below are examples of how to use this box. Use the help tab for more information about available functions:

Concatenate name and surname example:

name//-//surname

Agent

Surname

Concatenation

Jacob

Zuma

Jacob-Zuma

Helen

Zille

Helen-Zille

Tony

Stark

Tony-Stark

Zille Helen-Zille Tony Stark Tony-Stark © 2014 TIMi S.A.S. – TIMi: Faster predictions, better

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

Zille Helen-Zille Tony Stark Tony-Stark © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

31

Transformation boxes

Box

31 Transformation boxes Box Description Calculator box: Used to perform calculations based on several columns and

Description

Calculator box:

Used to perform calculations based on several columns and various data types.

With this box, you can create and/or updates columns. Below are examples of how

to use this box. Use the help tab for more information about available functions:

Return a yes if x is > 10 example:

X>10? “yes” : ”no”

if x is > 10 example: X>10 ? “yes” : ”no” Agent Millions Rich Jacob 210

Agent

Millions

Rich

Jacob

210

Yes

Helen

70

Yes

Tony

6

No

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

Yes Helen 70 Yes Tony 6 No © 2014 TIMi S.A.S. – TIMi: Faster predictions, better

32

Transformation boxes

Box

32 Transformation boxes Box Description Filter box: This box is used to filter out rows of

Description

Filter box:

This box is used to filter out rows of data that fit a certain criteria. It is equivalent to a “WHERE” statement in SQL

Below are examples of how to use this box. Use the help tab for more information about available functions:

Filter only waybills from CPT with a weight greater than 6

Loading == “CPT” && weight > 6

than 6 Loading == “CPT” && weight > 6 Remove null from File Reference: FileRef !=

Remove null from File Reference:

FileRef != “NULL”

Filter names with first three letters “Dav

left(name,3) == Dav

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

letters “ Dav ” left (name,3) == “ Dav ” © 2014 TIMi S.A.S. – TIMi:

33

Transformation boxes

Box

33 Transformation boxes Box Description Filter box: This box is used to filter out rows of

Description

Filter box:

This box is used to filter out rows of data that fit a certain criteria. It is equivalent to a “WHERE” statement in SQL

Use the help tab for more information about available functions.

Filter only waybills from CPT with a weight greater than 6

Loading == “CPT” && weight > 6

Waybill

Loading

Weight

1234

CPT

5

1235

CPT

12

1236

JHB

14

1237

JHB

7

1238

JHB

5

1239

DBN

14

1237 JHB 7 1238 JHB 5 1239 DBN 14 Waybill Loading Weight 1235 CPT 12 ©
1237 JHB 7 1238 JHB 5 1239 DBN 14 Waybill Loading Weight 1235 CPT 12 ©
1237 JHB 7 1238 JHB 5 1239 DBN 14 Waybill Loading Weight 1235 CPT 12 ©

Waybill

Loading

Weight

1235

CPT

12

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

Waybill Loading Weight 1235 CPT 12 © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

Transformation boxes

Box

Transformation boxes Box Description Filter box: This box is used to filter out rows of data

Description

Filter box:

This box is used to filter out rows of data that fit a certain criteria. It is equivalent to a “WHERE” statement in SQL

34

Use the help tab for more information about available functions.

Remove null from File Reference example:

not(isNull(FileRef))

Filref

Loading

Weight

HANLB2

CPT

5

D4355

CPT

12

C3452

JHB

14

 

JHB

7

JHB

5

23NULL3

DBN

14

14   JHB 7 JHB 5 23NULL3 DBN 14 Filref Loading Weight HANLB2 CPT 5 D4355
14   JHB 7 JHB 5 23NULL3 DBN 14 Filref Loading Weight HANLB2 CPT 5 D4355

Filref

Loading

Weight

HANLB2

CPT

5

D4355

CPT

12

C3452

JHB

14

23NULL3

DBN

14

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

12 C3452 JHB 14 23NULL3 DBN 14 © 2014 TIMi S.A.S. – TIMi: Faster predictions, better

Transformation boxes

Box

Transformation boxes Box Description Filter box: This box is used to filter out rows of data

Description

Filter box:

This box is used to filter out rows of data that fit a certain criteria. It is equivalent to a “WHERE” statement in SQL

35

Use the help tab for more information about available functions.

help tab for more information about available functions. Filter names with first three letters “ Dav

Filter names with first three letters “Dav

left(name,3) == Dav

three letters “ Dav ” left (name,3) == “ Dav ” © 2014 TIMi S.A.S. –
three letters “ Dav ” left (name,3) == “ Dav ” © 2014 TIMi S.A.S. –
three letters “ Dav ” left (name,3) == “ Dav ” © 2014 TIMi S.A.S. –
three letters “ Dav ” left (name,3) == “ Dav ” © 2014 TIMi S.A.S. –

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

letters “ Dav ” left (name,3) == “ Dav ” © 2014 TIMi S.A.S. – TIMi:

36

Transformation boxes: calculator & filterRows

Below a short summary of the main functions available:

Operators: + - * / ^

Comparison: ==, >, <, <=, >=, !=

Logical: &&,||

Condition: (x>a?”True”:”False”)

Format: ftoa, atof, itoa

Math: abs, floor, ceil, round, sum, max, min, sqrt

Char: right, left, substr, strlen, toupper, tolower, indexof

Special: isNull, nDaysInMonth,nvl

Constants: _pi, _e, _n, _null

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

nDaysInMonth,nvl Constants: _pi, _e, _n, _null © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

37

37 Training Agenda • What is Anatella • The Anatella Environment • Basic Operations of Anatella

Training Agenda

What is Anatella

The Anatella Environment

Basic Operations of Anatella

Most essential Anatella boxes

Practical exercise

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

essential Anatella boxes • Practical exercise © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.
Thank you for your Attention For more information, please visit our website : http://www.business-insight.com ©

Thank you for your Attention

For more information, please visit our website :

Attention For more information, please visit our website : http://www.business-insight.com © 2014 TIMi S.A.S. –

http://www.business-insight.com

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

visit our website : http://www.business-insight.com © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.
Backup up Slides The following slides are not part of the presentation. They are used
Backup up Slides The following slides are not part of the presentation. They are used

Backup up Slides

The following slides are not part of the presentation. They are used occasionnaly to answer to some specific technical question.

occasionnaly to answer to some specific technical question. © 2014 TIMi S.A.S. – TIMi: Faster predictions,

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

to answer to some specific technical question. © 2014 TIMi S.A.S. – TIMi: Faster predictions, better

Is it possible to comment

Is it possible to comment code? © 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

code?

© 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.
© 2014 TIMi S.A.S. – TIMi: Faster predictions, better decisions.

Yes, it is.

You can put comments

everywhere:

Directly on the graph.

In the javascript.

• Directly on the graph. • In the javascript. • In the SQL (put "--" at

In the SQL

(put "--" at the beginning of a line)

• Directly on the graph. • In the javascript. • In the SQL (put "--" at

Can we edit directly .Anatella files?

Yes, for a technician.

This file is a simple XML file (a text file) that is formatted so that a human can directly and easily

understand and change it.

For example: you can directly and easily edit the SQL statements inside the .anatella file:

easily edit the SQL statements inside the .anatella file: You can use any “ unicode ”

You can use any unicodetext editor

to edit .anatella files. For example,

you

editor

“EditPadLite7.

can

use

the

free

example, you editor “EditPadLite 7 ” . can use the free Equivalent © 2014 TIMi S.A.S.

Equivalent

editor “EditPadLite 7 ” . can use the free Equivalent © 2014 TIMi S.A.S. – TIMi:

© 2014 TIMi S.A.S. TIMi: Faster predictions, better decisions.

“EditPadLite 7 ” . can use the free Equivalent © 2014 TIMi S.A.S. – TIMi: Faster