Forum Discussion
smather
4 years agoHelper III
Call Stats - Roll Up Figures
Hi 🙂 I have some call stat data I'm struggling with (my brain is refusing to work) and any help would be fab. I have a col that sorts our calls like so: Handled = IF('Call'[Contact Di...
- Anonymous4 years ago
Hi smather ,
You can update the formula of your measure [TestMeasure] as below and check whether you can get the correct result.
TestMeasure =VAR _selhandabdon =SELECTEDVALUE ( 'Call'[Handled and Abandoned] )VAR TenSecs =CALCULATE (SUM ( 'Call'[All Calls] ),FILTER (FILTER (ALLSELECTED ( 'Call' ),'Call'[Handled and Abandoned] = "Handled Within 10 Seconds"),'Call'[X] <= MAX ( 'Call'[X] )))VAR TwentySecs =CALCULATE (SUM ( 'Call'[All Calls] ),FILTER (FILTER (ALLSELECTED ( 'Call' ),'Call'[Handled and Abandoned] = "Handled Within 20 Seconds"),'Call'[X] <= MAX ( 'Call'[X] )))VAR ThirtySecs =CALCULATE (SUM ( 'Call'[All Calls] ),FILTER (FILTER (ALLSELECTED ( 'Call' ),'Call'[Handled and Abandoned] = "Handled Within 30 Seconds"),'Call'[X] <= MAX ( 'Call'[X] )))VAR SixtySecs =CALCULATE (SUM ( 'Call'[All Calls] ),FILTER (FILTER (ALLSELECTED ( 'Call' ),'Call'[Handled and Abandoned] = "Handled in SLT (60 Seconds)"),'Call'[X] <= MAX ( 'Call'[X] )))VAR Abandoned =CALCULATE (SUM ( 'Call'[All Calls] ),FILTER (FILTER ( ALLSELECTED ( 'Call' ), 'Call'[Handled and Abandoned] = "Abandoned" ),'Call'[X] <= MAX ( 'Call'[X] )))RETURNIF (_selhandabdon = "Handled Within 10 Seconds",TenSecs,IF (_selhandabdon = "Handled Within 20 Seconds",TenSecs + TwentySecs,IF (_selhandabdon = "Handled Within 30 Seconds",TenSecs + TwentySecs + ThirtySecs,IF (_selhandabdon = "Handled in SLT (60 Seconds)",TenSecs + TwentySecs + ThirtySecs + SixtySecs,IF ( _selhandabdon = "Abandoned", Abandoned )))))Best Regards
Anonymous
4 years agoNot applicable
Hi smather ,
You can create a measure as below to get the % of calls from all calls in each category, later please check whether it can return the correct result....
% of calls =
DIVIDE (
[TestMeasure],
CALCULATE ( SUM ( 'Call'[All Calls] ), ALL ( 'Call' ) ),
0
)
If the above one is not what you want, please provide your expected result with the calculation logic for the % of the calls from all calls and special examples. Thank you.
Best Regards
smather
4 years agoHelper III
Hi Anonymous - apologies, me again. This is all perfect until it comes to filtering via month. Is there something I need to add to the VAR so it regonises being filtered via month and to still do the cumulative figures?