PA script to calculate summed duration between two fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 09:22 PM
Hello Experts,
I am working on a dashboard and need to create a PA widget which will represent average resolution time - this will be difference between two fields ....
I am a newbie to PA topic ... Could anyone please guide me on how to write script for this..
As per the requirement, I have to use formula indicator for this,
I have created two automated indicators
One is to calculate summed duration
And another to calculate total number of records present in the system
Avg=summed duration/total number of records
Thank you in advance!
Ujjwala
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 10:25 PM
Hi @ujjwala_678 ,
If you have the automated indicator with summed duration and the automated indicator with number of records, then you just need to create a formula indicator with the calculation summed duration divided with count if tickets. No PA script is needed here.
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
Best regards
Anders - https://www.linkedin.com/in/andersskovbjerg/
If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.
Best regards
Anders
Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-22-2023 11:15 PM
hello @AndersBGS ,
Thanks for replying ....yes I am looking to have something like that...
But for automated indicator which is calculating sum as the difference between two fields there I have to provide script which will calculate the difference between two fields and will return the summed value
Thanks,