0
0
Tableaubi_tool~20 mins

Line charts in Tableau - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Line Chart Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
visualization
intermediate
2:00remaining
Identify the correct use of a dual-axis line chart

You have two measures: Sales and Profit Margin. You want to show their trends over time on the same line chart but with different scales. Which option correctly describes how to create this visualization in Tableau?

APlace both measures on Columns shelf and use the 'Show Me' panel to select a line chart.
BPlace both measures on Rows shelf, right-click the second axis and select 'Dual Axis', then synchronize axes.
CCreate two separate worksheets and place them side by side on a dashboard.
DCombine both measures into one calculated field and plot it on a single axis.
Attempts:
2 left
💡 Hint

Think about how Tableau allows overlaying two measures with different scales.

dax_lod_result
intermediate
2:00remaining
Calculate running total for sales over months

Given a sales table with columns Month and SalesAmount, which DAX measure correctly calculates the running total of sales by month?

ARunning Total = CALCULATE(SUM(Sales[SalesAmount]), FILTER(ALL(Sales[Month]), Sales[Month] <= MAX(Sales[Month])))
BRunning Total = SUMX(FILTER(Sales, Sales[Month] >= MIN(Sales[Month])), Sales[SalesAmount])
CRunning Total = SUM(Sales[SalesAmount])
DRunning Total = CALCULATE(SUM(Sales[SalesAmount]), FILTER(Sales, Sales[Month] >= MAX(Sales[Month])))
Attempts:
2 left
💡 Hint

Consider how to accumulate sales up to the current month.

data_modeling
advanced
2:30remaining
Optimizing data model for time series line charts

You want to create a line chart showing monthly sales trends for multiple product categories. Your current data model has a large sales fact table and a separate date dimension table. What is the best modeling practice to optimize performance and accuracy for this line chart?

ARemove the date dimension table and use only the date column in the sales fact table.
BDuplicate the sales fact table and join it with the date table on the month name text field.
CEnsure the date dimension table is marked as a Date Table and create a relationship with the sales fact table on the date key.
DCreate a calculated column in the sales table to convert dates to text and use it for filtering.
Attempts:
2 left
💡 Hint

Think about how date tables improve time intelligence calculations.

🔧 Formula Fix
advanced
2:30remaining
Fix the issue with missing data points in a line chart

You created a line chart showing monthly sales, but some months are missing from the line, causing breaks. What is the most likely cause and fix?

AThe date dimension table is missing some months; add all months to the date table to fix it.
BThe sales data has null values; replace nulls with zeros in the sales column.
CThe line chart is filtered by product category; remove the filter to show all months.
DThe axis is set to categorical; change it to continuous to show all months.
Attempts:
2 left
💡 Hint

Consider how Tableau or BI tools treat date axes in line charts.

🎯 Scenario
expert
3:00remaining
Designing a dynamic line chart with user-selected measures

You want to build a line chart dashboard where users can select which measure to display (e.g., Sales, Profit, Quantity). Which approach best supports this dynamic selection in Tableau?

ACreate a parameter listing all measures and use a calculated field with CASE to switch measures based on the parameter value.
BCreate separate worksheets for each measure and use dashboard actions to show/hide them based on user clicks.
CUse a filter on the measure field to let users select the measure to display.
DCreate a calculated field that sums all measures and plot it as a single line.
Attempts:
2 left
💡 Hint

Think about how parameters and calculated fields can create dynamic visuals.