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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
retko1985
Creator II
Creator II

Sum Check in Set Analysis

Hello,

I have a situation, where I want to ignore values in some field based on the sum of another field.

Here is the example (look at attached QVW). I have a list of contracts, sale amounts and some other amount. I want to do the sum of sales for those contracts and specify in set analysis that I want to do SUM of Sales only for those contracts, which has the SUM of Amount more then 0.

Therefore in provided QVW I want a sum of Contracts 1 and 2. for Contract 3 the Sum of Amount is 0, so those should be ignored.

Please advise.

Thank you.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try:

Sum({<Contract={"=Sum(Amount)>0"}>}Sales)

Capture.JPG

View solution in original post

2 Replies
tresesco
MVP
MVP

Try:

Sum({<Contract={"=Sum(Amount)>0"}>}Sales)

Capture.JPG

Anil_Babu_Samineni

This?

Sum({<Amount = {'>0'}>} Sales)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful