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?
Use a function that shifts the date context exactly one year back and divide the difference by last year's sales.
Option C uses SAMEPERIODLASTYEAR to get last year's sales for the same period and divides the difference by last year's sales using DIVIDE to avoid division errors.
Option C uses PREVIOUSYEAR which returns a table of the previous year but does not preserve the same period context, so it can give incorrect results.
Option C shifts by one month, not one year, so it calculates month-over-month growth, not year-over-year.
Option C multiplies the difference by 100 but does not divide by last year's sales, so it does not calculate a percentage 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?
Choose a visualization that clearly shows trends over time.
A line chart is best for showing trends and changes over time, such as year-over-year growth percentages.
Stacked bar charts show totals but can be harder to interpret growth percentages.
Pie charts are not good for time series data.
Tables show numbers but do not visualize trends effectively.
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?
Think about what a date table represents and what data it should contain.
A date table is a calendar table with continuous dates and date attributes like Year, Month, and Day.
It must be marked as a Date Table in Power BI to enable time intelligence functions.
However, it should not contain sales amounts or any fact data; that belongs in the fact table.
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?
Compare like periods to get meaningful year-over-year growth.
Filtering last year's data to the same months as the current year ensures a fair comparison period.
Using all months of last year but partial months of this year inflates or deflates growth incorrectly.
Ignoring months or using only one month does not provide a reliable YoY growth.
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?
Consider how PREVIOUSYEAR behaves with filter context compared to SAMEPERIODLASTYEAR.
PREVIOUSYEAR returns all dates in the previous year, ignoring the current period filter, which can cause mismatched comparisons.
SAMEPERIODLASTYEAR preserves the same period context shifted one year back, giving accurate YoY calculations.
DIVIDE and multiplying by 100 are good practices but not the root cause of incorrect results here.