Forum Discussion
smather
Helper III
4 years agoCall 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 ,
I'm sorry that I still don't understand what's your expected result... I have created a sample table based on your description and the result you may want, please help me to confirm if it is what you want. If not, please share some sample data from your table (excluding sensitive data) and your expected result. If there is a calculation involved, please also provide the logic for the calculation. Thank you.
Sample data:
Expected result: wheteher the field Percent in below table is your expected result?
Best Regards