0
0
Power BIbi_tool~20 mins

Line charts in Power BI - Practice Problems & Coding Challenges

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

Which scenario is most suitable for using a line chart in Power BI?

ADisplaying parts of a whole in a snapshot
BShowing sales trends over several months
CListing customer names alphabetically
DComparing product categories in a single year
Attempts:
2 left
💡 Hint

Think about what line charts are best at showing over time.

dax_lod_result
intermediate
2:30remaining
Calculate cumulative sales for a line chart

Given a Sales table with columns Date and Amount, which DAX measure correctly calculates cumulative sales over time for a line chart?

Power BI
Cumulative Sales = CALCULATE(SUM(Sales[Amount]), FILTER(ALLSELECTED(Sales[Date]), Sales[Date] <= MAX(Sales[Date])))
ACumulative Sales = CALCULATE(SUM(Sales[Amount]), FILTER(ALLSELECTED(Sales[Date]), Sales[Date] <= MAX(Sales[Date])))
BCumulative Sales = SUMX(FILTER(Sales, Sales[Date] >= MIN(Sales[Date])), Sales[Amount])
CCumulative Sales = CALCULATE(SUM(Sales[Amount]), FILTER(Sales, Sales[Date] >= MAX(Sales[Date])))
DCumulative Sales = SUM(Sales[Amount])
Attempts:
2 left
💡 Hint

Look for a measure that sums amounts up to the current date.

🔧 Formula Fix
advanced
3:00remaining
Find the error in this line chart measure

Why does this DAX measure for cumulative sales produce incorrect results in a line chart?

Cumulative Sales = CALCULATE(SUM(Sales[Amount]), FILTER(ALL(Sales[Date]), Sales[Date] <= MAX(Sales[Date])))
Power BI
Cumulative Sales = CALCULATE(SUM(Sales[Amount]), FILTER(ALL(Sales[Date]), Sales[Date] <= MAX(Sales[Date])))
AMAX(Sales[Date]) is invalid inside FILTER and causes a syntax error
BThe FILTER condition uses <= instead of <, causing duplicate sums
CSUM should be replaced with SUMX for correct aggregation
DUsing ALL removes all filters including slicers, causing the line chart to ignore user selections
Attempts:
2 left
💡 Hint

Consider how ALL affects filtering in Power BI visuals.

🧠 Conceptual
advanced
2:00remaining
Understanding axis scaling in line charts

What is the effect of setting the Y-axis to 'Logarithmic scale' in a Power BI line chart?

AIt changes the X-axis to show dates in a logarithmic scale
BIt reverses the order of values on the Y-axis
CIt compresses large values and expands small values, making exponential growth easier to see
DIt removes all zero and negative values from the chart
Attempts:
2 left
💡 Hint

Think about how logarithmic scales transform data visually.

🎯 Scenario
expert
3:00remaining
Designing a line chart for multiple categories with different scales

You need to create a line chart showing monthly sales for two product categories. One category has sales in thousands, the other in millions. How do you best design the chart to compare trends clearly?

AUse a dual Y-axis line chart, assigning each category to its own Y-axis scale
BConvert all sales to the same unit before plotting on a single Y-axis
CCreate two separate line charts side by side, each with its own scale
DCombine both categories on a single Y-axis without scaling, to keep it simple
Attempts:
2 left
💡 Hint

Think about how to show different value ranges clearly in one chart.