Use the table’s granularity
Write Date with the grain used by the formula:Reference a nearby period
The compact lookup uses the formula’s current Date grain:dateadd:
Select a fixed period
Select a time window
Use an inclusive range when a calculation spans several periods:Find a period boundary
startofday, startofweek, startofhalf, and startofyear are also available. See Date-truncation functions.
Read part of a date
weekday, weeknum, and isoweeknum. See Date-part functions.