Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
jagadesh
Contributor II
Contributor II

SLA development

Hello Everyone,

Actually i'm creating one sla for service inisight. in set expression getting error like Error in expression : ')' expected but i have checked all areas if i missed any paranthesis but unable to found any issue. can any one help me on this. please find the below expression.

 

(num(count({<State-={'Closed Abandoned'},Type={'Chat'},wait_time ={'=30.00'}>}[number])/count({<State-={'Closed Abandoned'},Type={'Chat'}>}[number]),'#.##%')
+ num(sum([MonthFlag]={'Current Month'},
[Answered In SLA])/(sum({<[MonthFlag]={'Current Month'}>}[Calls Offered])-sum({<[MonthFlag]={'Current Month'}>}[Abandoned In SLA])), '#.##%')
)/2

 

 

Labels (1)
  • SaaS

2 Solutions

Accepted Solutions
Qrishna
Master
Master

This should work

= (num(count({<State-={'Closed Abandoned'}, Type={'Chat'},wait_time ={'=30.00'}>}[number])/count({<State-={'Closed Abandoned'},Type={'Chat'}>}[number]),'#.##%') +
num(sum({<[MonthFlag]={'Current Month'}>}[Answered In SLA]) / (sum({<[MonthFlag]={'Current Month'}>}[Calls Offered]) - sum({<[MonthFlag]={'Current Month'}>}[Abandoned In SLA])), '#.##%')
)/2

 

You dont need nums twice. once is fine.like below: 

= num(((count({<State-={'Closed Abandoned'}, Type={'Chat'},wait_time ={'=30.00'}>}[number])/count({<State-={'Closed Abandoned'},Type={'Chat'}>}[number])) +
(sum({<[MonthFlag]={'Current Month'}>}[Answered In SLA]) / (sum({<[MonthFlag]={'Current Month'}>}[Calls Offered]) - sum({<[MonthFlag]={'Current Month'}>}[Abandoned In SLA]))))/2, '#.##%')

View solution in original post

Qrishna
Master
Master

Please close the thread by marking my reply as answer so oher people in need can find it more easily. thnx

View solution in original post

3 Replies
Qrishna
Master
Master

This should work

= (num(count({<State-={'Closed Abandoned'}, Type={'Chat'},wait_time ={'=30.00'}>}[number])/count({<State-={'Closed Abandoned'},Type={'Chat'}>}[number]),'#.##%') +
num(sum({<[MonthFlag]={'Current Month'}>}[Answered In SLA]) / (sum({<[MonthFlag]={'Current Month'}>}[Calls Offered]) - sum({<[MonthFlag]={'Current Month'}>}[Abandoned In SLA])), '#.##%')
)/2

 

You dont need nums twice. once is fine.like below: 

= num(((count({<State-={'Closed Abandoned'}, Type={'Chat'},wait_time ={'=30.00'}>}[number])/count({<State-={'Closed Abandoned'},Type={'Chat'}>}[number])) +
(sum({<[MonthFlag]={'Current Month'}>}[Answered In SLA]) / (sum({<[MonthFlag]={'Current Month'}>}[Calls Offered]) - sum({<[MonthFlag]={'Current Month'}>}[Abandoned In SLA]))))/2, '#.##%')

jagadesh
Contributor II
Contributor II
Author

Thanks it is working fine

Qrishna
Master
Master

Please close the thread by marking my reply as answer so oher people in need can find it more easily. thnx