web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Suggested Answer

Custom metric

(0) ShareShare
ReportReport
Posted on by
I am trying to create a custom metric that returns the difference in %casecount of cases where case duration is below 1d1hr and cases where case duration is above the case duration median. 
 
I can't seem to find a way.
 
Here is my initial attempt:
 
(CASECOUNT(CaseDuration< 1.20:05:39.000) - CASECOUNT(CaseDuration>1.20:05:39.000)) * 100
 
It doesn't work and I don't know if I should refer to the activity anywhere?
 
Categories:
I have the same question (0)
  • Suggested answer
    LukasCervenan Profile Picture
    16 on at
    I recommend to proceed as follows:
    1. Create a custom metric to identify cases with a duration greater than 1 day and 1 hour. Its following metric:
     
    IF(Duration()>=Totime(1,1,0,0),1,0)
    Thus with value 1, we have cases with greater duration than my target value.
     
    2. Calculate the ratio. Relevant for cases in a particular view (this could be changed, based on required context). Then, the overall ratio in % should be:
     
    100*
    Countif(ViewCases,IF(Duration()>=Totime(1,1,0,0),1,0)==1)
    /
    Countif(ViewCases,IF(Duration()>=Totime(1,1,0,0),1,0)==0)
     
    I am sure there are more efficient ways how to calculate this. If you find out, please share, looking forward to hear from you.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard