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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard