← All TCC Flashcard Decks

Calculations and Expressions Flashcards

7 cards from real TCC practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.

Read the first 7 Calculations and Expressions flashcards as text
  1. What is the primary functional difference between a calculated field and a parameter in Tableau?

    Answer: Parameters are static, user-controlled input values while calculated fields are dynamic expressions evaluated against data

    Parameters hold a single user-selected value that can be fed into calculations, whereas calculated fields define a dynamic formula that is evaluated row-by-row or as an aggregate against the data.

  2. A consultant needs to assign each customer to a cohort based on the month of their very first purchase, regardless of what filters are applied to the view. Which approach is most appropriate?

    Answer: {FIXED [Customer ID] : MIN([Order Date])}

    A FIXED LOD expression using MIN([Order Date]) anchored to [Customer ID] computes the first purchase date per customer independent of view filters, enabling accurate cohort assignment.

  3. What does the WINDOW_AVG() table calculation function compute in Tableau?

    Answer: The average value across the rows defined by the current addressing and windowing configuration

    WINDOW_AVG() computes the average of an expression across the range of rows specified by the table calculation's addressing (start and end offsets within the current partition).

  4. In a Tableau table calculation configured with 'Compute Using: Specific Dimensions,' what role does the partitioning configuration play?

    Answer: It defines the group of cells within which the calculation resets and restarts

    Partitioning defines the boundaries of each independent group; when the table calculation moves from one partition to another, it restarts from the beginning.

  5. What is the effect of promoting a dimension filter to a context filter in relation to FIXED LOD expressions?

    Answer: The FIXED LOD expression is now evaluated after the context filter, causing it to respect the filter

    Context filters are applied before FIXED LOD expressions in Tableau's order of operations, so promoting a dimension filter to context causes FIXED LOD calculations to be scoped to the filtered data.

  6. What is the output of the Tableau ZN() function when applied to a field that contains a NULL value?

    Answer: It replaces the NULL with zero (0)

    ZN() (Zero for Null) replaces NULL values with 0, preventing NULLs from propagating through calculations where a zero would be semantically correct.

  7. Which Tableau expression correctly calculates the year-over-year sales growth percentage using a table calculation?

    Answer: (SUM([Sales]) - LOOKUP(SUM([Sales]), -1)) / ABS(LOOKUP(SUM([Sales]), -1))

    LOOKUP(SUM([Sales]), -1) retrieves the previous period's sales value, and dividing the difference by that prior value yields the year-over-year growth rate.