Hi Dave,
We are having DateDiff function in our Bold BI application but we don’t have that support in our Classic Platform. As of now if you want to show the number of days present between two dates in our classic Desktop application, then you can use DayDiff Expression.
If you want to find the hours/ minutes difference between two dates. Please follow below steps.
- If you want to calculate the minute difference between the two dates which are in same date then kindly use below formula,
Expression 1 : DATEPART(Hour,[date1])*60+ DATEPART(Minute,[date1])
Expression 2: DATEPART(Hour,[date2])*60+ DATEPART(Minute,[date2])
Expression 3: [Expression1]-[Expression2]
Here Expression 3 will give minute difference.
- If you want to calculate the minute difference between two different dates then kindly use below formula,
Expression 1: DATEPART(Hour,[date1])*60+ DATEPART(Minute,[date1])
Expression 2: DATEPART(Hour,[date2])*60+ DATEPART(Minute,[date2])
Expression 3: DAYDIFF([date1],[date2])
Expression 4: ([Expression1]-[Expression2])+[Expression3]*24*60
Here Expression 4 will gives the minute difference result
Note: In both steps, Expression1 and Expression 2 are same.
Please refer below screen shot,
By the same way, you can calculate hours difference also. Otherwise you can use DateDiff fuction directly in your query mode if you are using server type connections.
Kindly let us know if you need any further assistance.
Regards,
Dhivya