0
0
Tableaubi_tool~20 mins

Data model best practices in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Data Model Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Star Schema in Tableau

Which of the following best describes a star schema data model in Tableau?

ADimension tables connected in a circular loop to the fact table.
BA central fact table connected to multiple dimension tables, resembling a star shape.
CA single large table with all data combined without relationships.
DMultiple fact tables connected directly to each other without dimension tables.
Attempts:
2 left
💡 Hint

Think about how fact and dimension tables relate in a simple, clear structure.

lod_result
intermediate
2:00remaining
Calculating Total Sales with Correct Granularity

Given a sales fact table with columns OrderID, ProductID, and SalesAmount, and a product dimension table with ProductID and Category, which LOD expression correctly calculates total sales by category without double counting?

Tableau
Total Sales = SUM([Sales].[SalesAmount])
ATotal Sales by Category = { FIXED : SUM([Sales].[SalesAmount]) }
BTotal Sales by Category = { FIXED [Product].[ProductID] : SUM([Sales].[SalesAmount]) }
CTotal Sales by Category = SUM([Sales].[SalesAmount])
DTotal Sales by Category = { FIXED [Product].[Category] : SUM([Sales].[SalesAmount]) }
Attempts:
2 left
💡 Hint

Use a function that keeps the category filter but removes other filters on the product table.

visualization
advanced
2:00remaining
Choosing the Best Visualization for Hierarchical Data

You have a data model with sales data by region, country, and city. Which Tableau visualization best helps users explore this hierarchy interactively?

AA treemap with drill-down capability from region to city.
BA simple bar chart showing total sales by city only.
CA pie chart showing sales by region without hierarchy.
DA scatter plot with sales on X-axis and profit on Y-axis.
Attempts:
2 left
💡 Hint

Look for a visualization that shows parts within parts and allows drilling down.

🔧 Formula Fix
advanced
2:00remaining
Fixing Relationship Cardinality Issues

You created a relationship between a customer dimension and sales fact table in Tableau, but your sales totals are unexpectedly high. What is the most likely cause?

AThe relationship cardinality is set to many-to-many instead of one-to-many.
BThe sales fact table is missing a primary key.
CThe customer dimension table has duplicate customer IDs.
DThe relationship is set to one-to-one but should be many-to-one.
Attempts:
2 left
💡 Hint

Check how many records in each table relate to the other.

🎯 Scenario
expert
3:00remaining
Optimizing Data Model Performance for Large Datasets

Your Tableau dashboard is slow because the data model has many large tables joined with complex relationships. Which approach will best improve performance while keeping data accuracy?

ARemove all relationships and use cross-database joins instead.
BLoad all data as live connections without any filters or aggregations.
CUse extract filters to reduce data volume and create aggregated tables for common queries.
DDuplicate all tables and join them multiple times to speed up queries.
Attempts:
2 left
💡 Hint

Think about reducing data size and pre-aggregating to speed up queries.