The number of weeks between date1 and date2. The function calculates the difference by subtracting the week number of date1 from the week number of date2. For example, if date1 is 1/1/10 (week 1 of the year), and date2 is 1/4/10 (week 2 of the year), DIFF_WEEK( ) returns 1.The following example calculates the number of weeks between each value in the askByDate field and each value in the shipByDate field:The following example calculates the number of weeks from each value in the orderDate field to the end of the year:
|
|
Copyright Actuate Corporation 2012 |