Excel PowerPivot: DATEDIFF Function (DAX)
Excel PowerPivot DAX Function & Features
DATEDIFF Function (DAX)
Syntax:
DATEDIFF(<start_date>, <end_date>), <interval>)
Parameters:
start_date: Any DAX expression that returns a datetime value.
end_date: Any DAX expression that returns a datetime value.
interval: The interval to use when comparing dates. The value can be one of the following:
-
SECOND
-
MINUTE
-
HOUR
-
DAY
-
WEEK
-
MONTH
-
QUARTER
-
YEAR
Action:
Returns the count of interval boundaries crossed between two dates.
Excel Keyboard Shortcuts: Ctrl + Enter
Excel Keyboard Shortcuts Ctrl Combination
Ctrl + Enter
Hold the Ctrl key and press Enter
Action:
Fills the selected cell range with the current entry.
Excel Keyboard Shortcuts: Ctrl + Spacebar
Excel Keyboard Shortcuts Ctrl Combination
Ctrl + Spacebar
Hold the Ctrl key and press Spacebar
Action:
Selects an entire column in a worksheet.
Excel Keyboard Shortcuts: Ctrl + Arrow Key
Excel Keyboard Shortcuts Ctrl Combination
Ctrl + Arrow Key
Hold the Ctrl key and press Arrow Key
Action:
Moves to the edge of the cuttent data region in a worksheet.