Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How do I get a Sum if to work using the Total Function

Hi there,

I need to put in a KPI that is working out the % of a total amount of Customers but I need to use a sum if to select a fixed variable.

The formula I have so far is as follows:

sum(if([No. of Insertions]=1,(Customers)))/sum(if([No. of Insertions]=1,(Total Customers)))

I am getting the error of : ')' Expected, but no matter where I try and put brackets, it doesn't seem to like the 'Total' being in there

Can anyone help?

Thank you

1 Reply
sunny_talwar

Try this

Sum({<[No. of Insertions] = {1}>} Customers)/Sum(TOTAL {<[No. of Insertions] = {1}>} Customers)