Skip to main content

Notifications

Community site session details

Community site session details

Session Id : xxvqJNd2MZkj6yYBp33WNG
Power Automate - Process Mining
Unanswered

Custom metric

Like (0) ShareShare
ReportReport
Posted on 27 Nov 2024 10:10:56 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 07 Jan 2025 at 17:38:11
    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Process Mining

Overall leaderboard