0
0
Tableaubi_tool~10 mins

Custom table calculation scope in Tableau - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the scope of the table calculation to the entire table.

Tableau
WINDOW_SUM(SUM([Sales]), [1])
Drag options to blanks, or click blank then click option'
AFIRST()
BLAST()
C0, 0
D0, LAST()
Attempts:
3 left
💡 Hint
Common Mistakes
Using only FIRST() or LAST() without a range.
Using incorrect syntax like a single number.
2fill in blank
medium

Complete the code to set the partitioning of the table calculation by the [Region] field.

Tableau
WINDOW_AVG(SUM([Profit])) [1] [Region]
Drag options to blanks, or click blank then click option'
APARTITION BY
BORDER BY
CGROUP BY
DFILTER BY
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing partitioning with ordering or grouping.
Using SQL keywords that don't apply here.
3fill in blank
hard

Fix the error in the table calculation to correctly compute the running total across [Category].

Tableau
RUNNING_SUM(SUM([Sales])) OVER ([1])
Drag options to blanks, or click blank then click option'
AORDER BY [Category]
BPARTITION BY [Category]
CGROUP BY [Category]
DFILTER BY [Category]
Attempts:
3 left
💡 Hint
Common Mistakes
Using PARTITION BY instead of ORDER BY for running totals.
Using GROUP BY or FILTER BY which are invalid here.
4fill in blank
hard

Fill both blanks to calculate the percent of total sales within each [Region] partition.

Tableau
SUM([Sales]) / WINDOW_SUM(SUM([Sales]) [1] [2])
Drag options to blanks, or click blank then click option'
APARTITION BY
BORDER BY
C0, LAST()
DFIRST(), LAST()
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing ORDER BY with partitioning.
Using incorrect window range values.
5fill in blank
hard

Fill all three blanks to compute the difference from the previous row in [Sales] ordered by [Date] within each [Category].

Tableau
SUM([Sales]) - LOOKUP(SUM([Sales]), [1]) [2] [Date] [3] [Category]
Drag options to blanks, or click blank then click option'
A-1
BORDER BY
CPARTITION BY
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Using offset 0 instead of -1.
Confusing ORDER BY and PARTITION BY placement.