Professional Documents
Culture Documents
Calculations
What is Tableau Calculations
• Table calculations in Tableau are basically transformations you apply
to the values in a visualisation.
Fundamentals of Table Calculations
PARTITIONING FIELDS THE DIMENSIONS THAT DEFINE THE ADDRESSING FIELDS THE REMAINING DIMENSIONS,
SCOPE OF DATA IT IS PERFORMED UPON WHICH THE TABLE
ON ARE CALLED PARTITIONING CALCULATIONS IS PERFORMED, ARE
FIELDS. THE TABLE CALCULATIONS CALLED ADDRESSING FIELDS AND
IS PERFORMED SEPARATELY WITHIN DETERMINE THE DIRECTION OF THE
EACH PARTITION. CALCULATION.
3. Table(aCross)
Operator 1 –(negate)
Precedence
2 ^(power)
• The following table describes 3 *, /, %
the order in which operators
are evaluated. The top row has
the highest precedence. 4 +, –
Operators on the same row
have the same precedence. If 5 ==, >, <, >=, <=, !=
two operators have the same
precedence, they are
evaluated from left to right in 6 NOT
the formula. Also parentheses
can be used. The inner
parentheses are evaluated 7 AND
before the outer parentheses.
8 OR
Tableau - Functions
• Any data analysis involves a lot of calculations. In Tableau, the
calculation editor is used to apply calculations to the fields
being analyzed. Tableau has a number of inbuilt functions which
help in creating expressions for complex calculations.
• Number Functions
• String Functions
• Date Functions
• Logical Functions
• Aggregate Functions
Function Description Example
Number CEILING (number) Rounds a number CEILING(2.145) = 3
Functions to the nearest
integer of equal or
greater value.
Date DATEADD
(date_part,
Returns an increment added to
the date. The type of increment
DATEADD ('month', 3,
#2004-04-15#) =
2004-07-15 12:00:00
Functions increment, date) is specified in date_part. AM