on 01-14-2014 10:40 AM
Hi all,
I have created a calculated column in Attribute view wherein I am using DateDifference function
My structure is as follows -
As seen I am getting 1 day less than what is required whereas if start_dt and end _dt is same I am getting correct value
I am using the formula in my calculated column -
daysbetween(date(start_dt),date(end_dt))
Also If I am firing a direct query in SQL editor in HANA I am getting correct values.
select days_between(to_date(start_dt), to_date(end_dt)) from table_name
Kindly tell what is getting wrong above.
Hi Nakul,
Please try the following and see.
daysbetween(date(start_dt),date(end_dt)+1)
Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.