0
0
Tableaubi_tool~20 mins

Percent of total in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Percent of Total Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate Percent of Total Sales by Category

You have a sales dataset with categories and sales amounts. You want to calculate the percent of total sales for each category using Tableau's Level of Detail (LOD) expressions.

Which of the following LOD expressions correctly calculates the percent of total sales by category?

A{ FIXED [Category] : SUM([Sales]) } / SUM([Sales])
BSUM([Sales]) / { FIXED [Category] : SUM([Sales]) }
C{ INCLUDE [Category] : SUM([Sales]) } / SUM([Sales])
DSUM([Sales]) / { EXCLUDE [Category] : SUM([Sales]) }
Attempts:
2 left
💡 Hint

Think about fixing the category to get total sales per category, then divide by overall sales.

visualization
intermediate
1:30remaining
Best Visualization for Percent of Total Sales by Region

You want to show the percent of total sales by region in a dashboard. Which visualization type best helps users quickly understand each region's contribution to total sales?

AStacked bar chart showing sales by region
BLine chart showing sales trend over time by region
CPie chart showing percent of total sales by region
DScatter plot comparing sales and profit by region
Attempts:
2 left
💡 Hint

Think about a chart that shows parts of a whole clearly.

data_modeling
advanced
2:30remaining
Modeling Data for Percent of Total Calculation

You have sales data with transactions, products, and regions. You want to calculate percent of total sales by product category and region. Which data modeling approach best supports efficient percent of total calculations in Tableau?

ACreate a single flat table with all transaction details including product and region
BUse star schema with separate dimension tables for product and region linked to a fact sales table
CStore sales data in multiple unrelated tables and join them in Tableau
DUse a denormalized table with repeated product and region info for each transaction
Attempts:
2 left
💡 Hint

Think about how to organize data for fast aggregation and filtering.

🔧 Formula Fix
advanced
2:00remaining
Debug Incorrect Percent of Total Calculation

A user created this Tableau calculated field to show percent of total sales by category:

SUM([Sales]) / SUM({ FIXED : SUM([Sales]) })

But the results are incorrect. What is the main issue?

AThe calculated field syntax is invalid and causes a syntax error
BSUM aggregation cannot be used inside FIXED LOD expressions
CThe division order is reversed; it should be total sales divided by category sales
DThe FIXED LOD expression is missing the category dimension, so total sales is fixed at the entire dataset level
Attempts:
2 left
💡 Hint

Check what the FIXED expression is fixing on.

🧠 Conceptual
expert
3:00remaining
Understanding Percent of Total with Multiple Filters

You have a dashboard with filters for year and region. You want to show percent of total sales by product category, but the percent should always be based on total sales for the selected year only, ignoring region filter.

Which Tableau LOD expression correctly calculates this?

A{ FIXED [Year], [Category] : SUM([Sales]) } / { FIXED [Year] : SUM([Sales]) }
B{ INCLUDE [Year], [Category] : SUM([Sales]) } / { INCLUDE [Year] : SUM([Sales]) }
C{ EXCLUDE [Region] : SUM([Sales]) } / SUM([Sales])
DSUM([Sales]) / { FIXED [Year], [Region] : SUM([Sales]) }
Attempts:
2 left
💡 Hint

Think about fixing the year to ignore region filter but keep category grouping.