Forum Discussion

unnijoy's avatar
unnijoy
Icon for Post Prodigy rankPost Prodigy
6 years ago
Solved

Handled % overall

I have a table with Ticket number,Country, Month & HC. I have to calulate the handled %  Formula = total ticket/ Avg( HC). I am getting issue when i need to find the overall for a collection of mon...
  • mahoneypat's avatar
    mahoneypat
    6 years ago

    My bad.  I must have got distracted and didn't finish the measure.  Only got the numerators.  Please try this updated expression.

     

    Avg Monthly Handled =
    VAR __summary =
        ADDCOLUMNS (
            SUMMARIZE ( Table, Table[Country], Table[Month] ),
            "@count", CALCULATE ( COUNTROWS ( Table ) ),
            "@avg", CALCULATE ( AVERAGE ( Table[HC] ) )
        )
    RETURN
        AVERAGEX ( __summary, DIVIDE ( [@count], [@avg] ) )

     

    If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat