Exam TCC-C01 Topic 1 Question 23 Discussion
Actual exam question for Tableau's TCC-C01 exam
Question #: 23
Topic #: 1
Question #: 23
Topic #: 1
A client calculates the percent of total sales for a particular region compared to all regions.

Which calculation will fix the automatic recalculation on the % of total field?

Which calculation will fix the automatic recalculation on the % of total field?
Suggested Answer: D Vote an answer
To correctly calculate the percent of total sales for a particular region compared to all regions, and to ensure that the calculation does not get inadvertently recalculated with each region filter application, the recommended calculation is:
* {FIXED [Region]: sum([Sales])}: This part of the formula computes the sum of sales for each region, regardless of any filters applied to the view. It uses a Level of Detail expression to fix the sum of sales to each region, ensuring that filtering by regions won't affect the calculated value.
* SUM([Sales]): This part computes the total sum of sales across all regions and is recalculated dynamically based on the filters applied to other parts of the dashboard or worksheet.
* Combining the two parts: By dividing the fixed regional sales by the total sales, we get the proportion of sales for each region as compared to the total. This calculation ensures that while the denominator adjusts according to filters, the numerator remains fixed for each region, accurately reflecting the sales percentage without being affected by the region filter directly.
ReferencesThis calculation follows Tableau's best practices for using Level of Detail expressions to manage computation granularity in the presence of dashboard filters, as outlined in the Tableau User Guide and official Tableau training materials.
* {FIXED [Region]: sum([Sales])}: This part of the formula computes the sum of sales for each region, regardless of any filters applied to the view. It uses a Level of Detail expression to fix the sum of sales to each region, ensuring that filtering by regions won't affect the calculated value.
* SUM([Sales]): This part computes the total sum of sales across all regions and is recalculated dynamically based on the filters applied to other parts of the dashboard or worksheet.
* Combining the two parts: By dividing the fixed regional sales by the total sales, we get the proportion of sales for each region as compared to the total. This calculation ensures that while the denominator adjusts according to filters, the numerator remains fixed for each region, accurately reflecting the sales percentage without being affected by the region filter directly.
ReferencesThis calculation follows Tableau's best practices for using Level of Detail expressions to manage computation granularity in the presence of dashboard filters, as outlined in the Tableau User Guide and official Tableau training materials.
by Stephanie at Jun 27, 2025, 07:05 AM
0
0
0
10
Comments
Eric Sakowski
2025-08-20 09:58:43A. {FIXED [Region]:[Sales]}/{FIXED: SUM([Sales])}
❌ Incorrect → [Sales] without an aggregation is invalid. Tableau requires an aggregate inside LODs.
B. {FIXED [Region]:SUM([Sales])}
❌ Incorrect → This calculates sales per region, but it does not calculate the percentage of the total.
C. {FIXED [Region]:SUM([Sales])}/{FIXED: SUM([Sales])}
✅ Correct →
The numerator fixes the sales per region.
The denominator fixes the total sales across all regions, independent of the Region filter.
This gives exactly the % of each region over the global total, and it will not change when Region is filtered.
D. {FIXED [Region]:SUM([Sales])}/SUM([Sales])
❌ Incorrect → The denominator SUM([Sales]) is affected by filters, so the percentage still recalculates when Region is filtered.
✅ Correct Answer:
C. {FIXED [Region]:SUM([Sales])}/{FIXED: SUM([Sales])}
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).