Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
polisetti
Creator II
Creator II

If expression


Hi ,

Please tell the expression ..I have a 'Sales Type' field in which it contains 'Units',  'Cash'...Now i want to calculate 'IPSales'

Ex: sales type= units ,i want sum of IPSales ...

Please give the expression in IF statement and Set analysis also......

1 Solution

Accepted Solutions
manideep78
Partner - Specialist
Partner - Specialist

Set Analysis:

Sum({<[Sales Type]={units}>}IPSales)

Script:

Sum(If([Sales Type]={units}, IPSales)) as IPSalesSum

View solution in original post

4 Replies
manideep78
Partner - Specialist
Partner - Specialist

Set Analysis:

Sum({<[Sales Type]={units}>}IPSales)

Script:

Sum(If([Sales Type]={units}, IPSales)) as IPSalesSum

polisetti
Creator II
Creator II
Author

Thank you Manideep

polisetti
Creator II
Creator II
Author

If possible please give you mail  id ...

manideep78
Partner - Specialist
Partner - Specialist

You could be able to find my mail id in my profile. If you got what you required, please close it by marking it as correct answer. So that it will help others not to work on same question.