Is it possible to calculate difference between 2 date/time fields using a formula indicator that getting date returned as days, the results to be showed in reports using PA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 04:43 AM
Is it possible to calculate difference between 2 date/time fields using a formula indicator that getting date returned as days, the results to be showed in reports using PA?
- Labels:
-
Dashboard
-
Performance Analytics
-
Reporting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 05:08 AM
Hi,
I think we need to script that in PA indicators but need to check on this.
Thanks,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 05:11 AM
Hi, this is a script in an indicator that will calculate the difference between change close times in days:
var diff=function(x,y){return y.dateNumericValue() - x.dateNumericValue();};
var hours=function(x,y){return diff(x,y)/(60*60*1000);};
hours(current.opened_at, current.closed_at);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 06:51 AM
Hi,
After submitting the code. what should be followed in order to get the values?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 07:05 AM
When using a fields from a database view how should script should approached?
For example Task_sla includes the business_duration column
And once the submit the code what should be followed in order to get the generated values?