Skip to main content

Notifications

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:
  • 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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >