d

Excel PowerPivot: DATEDIFF Function (DAX)


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.

 

No comments:

Post a Comment

Recommended for You

LinkWithin

Related Posts Plugin for WordPress, Blogger...