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

Community site session details

Session Id :
Power Automate - Process Mining
Unanswered

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
    Custom metric
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 787 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 448 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 327

Last 30 days Overall leaderboard