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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

sum a number with a condition

this i tha table that i have

area1number
A100
A100
B50
C100
D

500

D400

what i need i very simple

i need  2 text boxex

1. sum all numbers of all areas (this i have)=1250

2. sum all numbers except D- the result should be=350 -this i need

Labels (1)
1 Solution

Accepted Solutions
arulsettu
Master III
Master III

try this

sum({<area1-={'D'}>}number)

View solution in original post

3 Replies
arulsettu
Master III
Master III

try this

sum({<area1-={'D'}>}number)

sunny_talwar

Try these:

1) Sum(number)

2) Sum({<area1 -= {'D'}>}number) -> This would filter out area1 not selected (while still excluding D)

or

Sum({<area1 = {'*'} - {'D'}>}number) -> This would not change based on selection in area1

Anonymous
Not applicable
Author

Hi

try this

1st text box ..>General..>Text...>

=sum(number)

2nd text box ..>General..>Text...>


=sum({$<area1=-{'D'}>} number)