0
0
Power BIbi_tool~5 mins

DATEADD for period shifts in Power BI - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What does the DATEADD function do in Power BI?
DATEADD shifts a date by a specified number of intervals (days, months, quarters, years) to compare data across different time periods.
Click to reveal answer
beginner
Write the syntax of DATEADD in Power BI.
DATEADD(<dates>, <number_of_intervals>, <interval>) where <interval> can be DAY, MONTH, QUARTER, or YEAR.
Click to reveal answer
intermediate
How would you use DATEADD to get sales from the previous month?
Use DATEADD with -1 for the number_of_intervals and MONTH for the interval, like: DATEADD(Date[Date], -1, MONTH).
Click to reveal answer
intermediate
Why is DATEADD useful for creating time comparison measures?
It helps compare current data with past periods, like last month or last year, enabling trend analysis and performance tracking.
Click to reveal answer
beginner
What happens if you use DATEADD with a positive number_of_intervals?
It shifts the dates forward by that number of intervals, for example, moving one month ahead if interval is MONTH and number is 1.
Click to reveal answer
What interval options can you use with DATEADD in Power BI?
ADAY, MONTH, QUARTER, YEAR
BHOUR, MINUTE, SECOND
CWEEK, FORTNIGHT, MONTH
DDAY, WEEK, YEAR
How do you shift dates one quarter back using DATEADD?
ADATEADD(Date[Date], -1, QUARTER)
BDATEADD(Date[Date], 1, QUARTER)
CDATEADD(Date[Date], -1, MONTH)
DDATEADD(Date[Date], 1, MONTH)
What is the result of DATEADD(Date[Date], 0, MONTH)?
AShifts dates to the next month
BReturns the original dates without change
CShifts dates to the previous month
DReturns an error
Which scenario is best suited for using DATEADD?
ACalculating total sales for a single day
BSorting data alphabetically
CComparing sales this month to sales last month
DFiltering data by product category
If you want to compare this year's sales to last year's, which DATEADD call is correct?
ADATEADD(Date[Date], 1, YEAR)
BDATEADD(Date[Date], 12, MONTH)
CDATEADD(Date[Date], -12, MONTH)
DDATEADD(Date[Date], -1, YEAR)
Explain how DATEADD helps in creating time comparison reports in Power BI.
Think about comparing sales this month to last month.
You got /4 concepts.
    Describe the syntax and parameters of the DATEADD function and what each part means.
    Break down the function into its three parts.
    You got /4 concepts.