0
0
Power BIbi_tool~20 mins

Year-over-year growth in Power BI - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Year-over-Year Growth Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
dax_lod_result
intermediate
2:00remaining
Calculate Year-over-Year Growth Percentage

You have a sales table with columns Sales[Date] and Sales[Amount]. You want to create a measure that calculates the year-over-year growth percentage of total sales.

Which DAX measure will correctly calculate the year-over-year growth percentage?

AYoY Growth % = ([Total Sales] - CALCULATE([Total Sales], DATEADD(Sales[Date], -1, MONTH))) / CALCULATE([Total Sales], DATEADD(Sales[Date], -1, MONTH))
BYoY Growth % = ([Total Sales] - CALCULATE([Total Sales], PREVIOUSYEAR(Sales[Date]))) / CALCULATE([Total Sales], PREVIOUSYEAR(Sales[Date]))
CYoY Growth % = DIVIDE([Total Sales] - CALCULATE([Total Sales], SAMEPERIODLASTYEAR(Sales[Date])), CALCULATE([Total Sales], SAMEPERIODLASTYEAR(Sales[Date])))
DYoY Growth % = ([Total Sales] - CALCULATE([Total Sales], SAMEPERIODLASTYEAR(Sales[Date]))) * 100
Attempts:
2 left
💡 Hint

Use a function that shifts the date context exactly one year back and divide the difference by last year's sales.

visualization
intermediate
2:00remaining
Best Visualization for Year-over-Year Growth

You want to show year-over-year sales growth for multiple years in a Power BI report. Which visualization type is best to clearly show trends and growth percentages over time?

ALine chart showing year-over-year growth percentage by year
BTable showing sales and growth percentage side by side
CStacked bar chart showing total sales by year
DPie chart showing sales distribution by year
Attempts:
2 left
💡 Hint

Choose a visualization that clearly shows trends over time.

data_modeling
advanced
2:00remaining
Modeling Date Table for Year-over-Year Calculations

To calculate year-over-year growth correctly in Power BI, you need a proper date table. Which of the following is NOT a required characteristic of a date table for accurate time intelligence calculations?

AThe date table must have a continuous range of dates without gaps
BThe date table must be marked as a Date Table in Power BI
CThe date table must include columns for Year, Month, and Day
DThe date table must include sales amounts for each date
Attempts:
2 left
💡 Hint

Think about what a date table represents and what data it should contain.

🎯 Scenario
advanced
2:00remaining
Handling Partial Year Data in Year-over-Year Growth

Your sales data for the current year is only available up to June, but last year's data is complete. You want to calculate year-over-year growth for the available months only. Which approach will give the most accurate YoY growth?

ACalculate YoY growth using all months of last year and only available months of this year
BFilter last year's data to the same months available in the current year before calculating YoY growth
CCalculate YoY growth ignoring the months and compare total sales of both years
DCalculate YoY growth using only the last month of data available
Attempts:
2 left
💡 Hint

Compare like periods to get meaningful year-over-year growth.

🔧 Formula Fix
expert
3:00remaining
Debugging Incorrect Year-over-Year Growth Measure

You wrote this DAX measure to calculate year-over-year growth percentage:

YoY Growth % = ([Total Sales] - CALCULATE([Total Sales], PREVIOUSYEAR('Date'[Date]))) / CALCULATE([Total Sales], PREVIOUSYEAR('Date'[Date]))

However, the results are incorrect and inconsistent. What is the main reason for this issue?

APREVIOUSYEAR returns a table of the entire previous year, which may not match the current filter context, causing incorrect calculations
BThe measure is missing a DIVIDE function to handle division by zero errors
CThe measure should use SAMEPERIODLASTYEAR instead of PREVIOUSYEAR to shift the date context by one month
DThe measure needs to multiply the result by 100 to convert to percentage
Attempts:
2 left
💡 Hint

Consider how PREVIOUSYEAR behaves with filter context compared to SAMEPERIODLASTYEAR.