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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
unnijoy
Post Partisan
Post Partisan

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 month. Their the formula shoule be 

 

Overall= Avg ( Monthly handled %).

As per below table for india Hadled % will be For July =5/626=0.8% | Aug = 7/592 = 1.2% | Sep = 7/657 =1.1%

As per the required formula its should be:
Overall Handle % = Avg(0.8 %,1.2%,1.1%) = 1.0%

ContactsCountryMonthHC
TIC-5214INDIAJuly, 2019626
TIC-5672INDIAJuly, 2019626
TIC-5653INDIAJuly, 2019626
TIC-5652INDIAJuly, 2019626
TIC-5647INDIAJuly, 2019626
TIC-6068INDIAAugust, 2019592
TIC-6338INDIAAugust, 2019592
TIC-6330INDIAAugust, 2019592
TIC-6297INDIAAugust, 2019592
TIC-6289INDIAAugust, 2019592
TIC-5920INDIAAugust, 2019592
TIC-5861INDIAAugust, 2019592
TIC-7248INDIASeptember, 2019657
TIC-7226INDIASeptember, 2019657
TIC-6891INDIASeptember, 2019657
TIC-7272INDIASeptember, 2019657
TIC-7195INDIASeptember, 2019657
TIC-7178INDIASeptember, 2019657
TIC-7148INDIASeptember, 2019657
1 ACCEPTED SOLUTION

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





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

3 REPLIES 3
mahoneypat
Employee
Employee

Please try this expression, replacing Table with your actual table name

 

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

 

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

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


@mahoneypat 

 

in the measure that you gave i am not able to understand wer we are calculation the total Ticket count and Avg of HC. Bec when i use the formula it is not giving me corect valuse, Can you please check and confirm.

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





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.