Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
cj1986cj
New Member

Calculate % of response times

Hi All

 

New user here, hoping you guys can help.

 

My company have a response time for phone calls of 90 minutes, within power BI i simply want to show what % of calls we reply to within 90 minutes, example table below from my report. So the origin would need to be Phone or Indirect Information.   so of the 8 calls below, 7 were responded to on time therefore an on time response time % of 87.50%

 

cj1986cj_0-1724927289748.png

 

2 ACCEPTED SOLUTIONS

Hi @cj1986cj, give this a try, and if you encounter any issues, let me know.

OnTimeResponseTime% =
DIVIDE(
    CALCULATE(
        COUNTROWS(Sheet1),
        Sheet1[Sum of Response Time in Minutes] <= 90,
        Sheet1[Origin] IN {"Phone", "Indirect Information"}
    ),
    CALCULATE(
        COUNTROWS(Sheet1),
        Sheet1[Origin] IN {"Phone", "Indirect Information"}
    )
) * 100

 

Did I answer your question? If so, please mark my post as the solution! ✔️
Your Kudos are much appreciated! Proud to be a Solution Supplier!

View solution in original post

Anonymous
Not applicable

Hi All
Firstly  ahadkarimi thank you for your solution!
And @cj1986cj, you can try the following code which may help your problem.

 

Measure = 
VAR A=MAXX('Table',CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),'Table'[Response Time in Minutes]<=90)))
VAR B=CALCULATE(COUNTROWS('Table'),ALL('Table'))
RETURN
DIVIDE(A,B,0)

 

vxingshenmsft_0-1724996332388.png

I hope my solution solves your problem, and I would be immensely proud if it helps you!
Hope it helps!

Best regards,
Community Support Team_ Tom Shen

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi All
Firstly  ahadkarimi thank you for your solution!
And @cj1986cj, you can try the following code which may help your problem.

 

Measure = 
VAR A=MAXX('Table',CALCULATE(COUNTROWS('Table'),FILTER(ALL('Table'),'Table'[Response Time in Minutes]<=90)))
VAR B=CALCULATE(COUNTROWS('Table'),ALL('Table'))
RETURN
DIVIDE(A,B,0)

 

vxingshenmsft_0-1724996332388.png

I hope my solution solves your problem, and I would be immensely proud if it helps you!
Hope it helps!

Best regards,
Community Support Team_ Tom Shen

 

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

cj1986cj
New Member

Maybe worth noting the formula that AI gave me (that doesnt work) 

 

On Time Response Time % =
DIVIDE(
    CALCULATE(
        COUNTROWS(Sheet1),
        Sheet1[Response Time in Minutes] <= 90,
        Sheet1[Origin] IN {"Phone", "Indirect Information"}
    ),
    CALCULATE(
        COUNTROWS(Sheet1),
        Sheet1[Origin] IN {"Phone", "Indirect Information"}
    )
) * 100

Hi @cj1986cj, give this a try, and if you encounter any issues, let me know.

OnTimeResponseTime% =
DIVIDE(
    CALCULATE(
        COUNTROWS(Sheet1),
        Sheet1[Sum of Response Time in Minutes] <= 90,
        Sheet1[Origin] IN {"Phone", "Indirect Information"}
    ),
    CALCULATE(
        COUNTROWS(Sheet1),
        Sheet1[Origin] IN {"Phone", "Indirect Information"}
    )
) * 100

 

Did I answer your question? If so, please mark my post as the solution! ✔️
Your Kudos are much appreciated! Proud to be a Solution Supplier!

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.