Professional Documents
Culture Documents
PART 4
AGENDA • Filtering Data
– Writing Conditional Statements
– Boolean Logic
• Writing Formulas
– Formula Overview
– Basic Arithmetic
– Null, Zero, and Empty
– Conditional Statements
– String Expressions
– Multi-Row Formula
• Workflow Documentation
FILTERI N G
DATA
FILTERING DATA
Writing Conditional Statements
FILTER TOOL CONDITIONAL
STATEMENTS
• Basic Filter
– Tests for a single condition
– Writes the Expression for you
• Custom Filter
– Check for more complex conditions
– Check for multiple conditions
FILTER SYNTAX
Variable <<operator>> Value
[SCORE
]
FILTER SYNTAX
TEXT & NUMBERS
• Text – in QUOTES
[STATE]= “California”
True
[COLOR]=“BLUE” FALSE
TRUE
OR
[COLOR]=“YELLOW” FALSE
TRUE False
VISUALIZING “AND”
True
[NUMBER]>=2 FALSE
TRUE
AND
[NUMBER]<=5
TRUE
FALSE False
CUSTOM FILTER COMBINING
STATEMENTS
EXERCISE 13
FORMULAS
FORMULAS
Formula Overview
FORMULA INTRO
• Output Field
• Tabs
– Variables
– Functions
– Saved Expressions
• Expression
• Data Preview
16
OUTPUT COLUMN
• Output Field
– Select ‘Add Column’ for new field
• Type New Column Name
• Choose Data Type and Size
– Select existing column name to update
the field
• Not possible to change data type for
existing column in Formula – add select
before or after to update.
17
FUNCTIONS
• Organized by Category
• Hover over the function to see
brief explanation
• Go to ‘Help’ documentation
for detailed explanation and
examples
18
FORMULAS
Basic Arithmetic
BASIC ARITHMETIC
21
SUBTRACTING DATA IN
SAME ROW
22
FORMULAS
Null, Zero, and Empty
NULL, ZERO, EMPTY -
WHAT’S THE DIFFERENCE?
Empty “” isempty([Field2])
Zero 0 [Field3] = 0
FORMULAS
Conditional Expressions
CONDITIONAL EXPRESSIONS
IN FORMULAS
Example: Using the shirts table insert a price
field.
Blue shirts are $5.00 and all other shirts are $2.50
IF [COLOR]= “blue”
THEN 5.00
ELSE 2.50
ENDIF
IF c // conditional statement
THEN t // action for true
ELSE f // action for everything not true
ENDIF
26
KNOWLEDGE IN ACTION 2
INSTRUCTIONS R E S U LT S
EXERCISE 27
FORMULAS
String Expressions
UNDERSTANDING STRINGS
AND POSITION
29
UNDERSTANDING STRINGS
AND POSITION
30
UNDERSTANDING STRINGS
AND LENGTH
31
UNDERSTANDING STRINGS
AND LENGTH
32
KNOWLEDGE IN ACTION 3
INSTRUCTIONS R E S U LT S
• C r e a t e Ye a r C o l u m n
• Use ‘Period’ field to derive year
• Create Quar ter Column
• Use ‘Period’ field to derive Quarter column
EXERCISE 33
FORMULAS
Multi-Row Formulas
MULTI-ROW FORMULA INTRO
• C a l c u l at e Q u a r t e r ove r
Quar ter percent change in Net
Sales by Countr y and Re gion
• (previous quarter – current quarter)/previous
quarter *100
EXERCISE 37
WORKFLOW
DOCUMENTATION
TOOL CONTAINER