Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8914

Using DateDifference in Calculated Column in Attribute Views

$
0
0

Hi all,

 

I have created a calculated column in Attribute view wherein I am using DateDifference function

 

My structure is as follows -

 

imsge.jpg

 

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.


Viewing all articles
Browse latest Browse all 8914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>