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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how can I display sum of rows in the expression

Salesorder item amount
121853 10 1
121853 20 1
121853 30 1
121853 40 1
121853 50 1
121853 60 1
121853 70 1
121853 80 1

I would like to findout how many items are having the value >=30 the amount should be shown 6

sumof rows needs to displayed in the expression

count(if(item >='30',Salesorder))

sum of row is displaying value

For reporting

Salesorder oneitem twoitem morethan3 item

121853 1 1 6

I need to display in the chart .

Advance thanks for your help.

1 Solution

Accepted Solutions
Not applicable
Author

Thanks.

I don't have Qlikview8.5 above version.Set analysis will work above 8.5 only right

View solution in original post

4 Replies
sczetty
Partner - Contributor
Partner - Contributor

I suggest a simple if test:

if(item >= 30,1,null())

When you use this calculation, the result of the column will be the count of the qualifying items within your sales order.

gmaguina
Partner - Contributor II
Partner - Contributor II

You can use search with Set Analysis (version 8.5 or greater) to find those values >=30 :

count( {$<item = {">=30"}>} amount )

Good luck !

Gerardo

Not applicable
Author

Thanks.

I don't have Qlikview8.5 above version.Set analysis will work above 8.5 only right

Not applicable
Author

Thanks.I tried this - it didn't work