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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Service Level for Call Stats

Hi,

 

I am trying to work out the service level for a call stats report. I have a column which says whether an incoming call was answered within 3 minutes and either states yes or no. On previous dahsboards on Excel I have used this formula =sum(Yes/(Yes+No). I have tried a lot of DAX formulas but have yet to find one that works. 

 

Does anyone have a solution to this?

 

Thanks,

1 ACCEPTED SOLUTION
Anonymous
Not applicable

 

// This gives you the precentage of
// calls that were answered within
// less than 3 mins where the start
// of the call was within a certain
// time frame. The Dates table
// should be connected to your fact
// table on some date field which will
// mean "the day on which the call
// started." Let C be the fact table
// that you've shown. By the way,
// it's always better to give us raw
// data, not pictures. Nobody wants
// to type this data manually in.

[% Calls < 3] =
var __allCallsCount =
    COUNTROWS( C )
var __callsWithDurationLessThan3 =
    CALCULATE(
        COUNTROWS( C ),
        KEEPFILTERS(
            C[Less Than 3] = "Yes"
        )
    )
var __ratio =
    DIVIDE(
        __callsWithDurationLessThan3,
        __allCallsCount
    )
return
    __ratio

 

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Anonymous , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hi amitchandak,

 

Ive attached a screenshot of my table structure and some example data. 

 

SRobinson94_0-1601635488190.png

Anonymous
Not applicable

@amitchandak Sorry forgot to tag you in my previous comment

Anonymous
Not applicable

 

// This gives you the precentage of
// calls that were answered within
// less than 3 mins where the start
// of the call was within a certain
// time frame. The Dates table
// should be connected to your fact
// table on some date field which will
// mean "the day on which the call
// started." Let C be the fact table
// that you've shown. By the way,
// it's always better to give us raw
// data, not pictures. Nobody wants
// to type this data manually in.

[% Calls < 3] =
var __allCallsCount =
    COUNTROWS( C )
var __callsWithDurationLessThan3 =
    CALCULATE(
        COUNTROWS( C ),
        KEEPFILTERS(
            C[Less Than 3] = "Yes"
        )
    )
var __ratio =
    DIVIDE(
        __callsWithDurationLessThan3,
        __allCallsCount
    )
return
    __ratio

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.