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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
dathathreya
Creator
Creator

Count in set Analysis

Hi all i want to count only of 1 value in a column.i have a dispute column in my table which it consists of 10lack rows .the data is like 0,1 in this column.now i want to count only 1 values in that 10 lakh records.

1 Solution

Accepted Solutions
sunny_talwar

Why do you need set analysis if the values are 0s and 1s, may be just this

Sum(Dispute)

View solution in original post

9 Replies
sunny_talwar

Why do you need set analysis if the values are 0s and 1s, may be just this

Sum(Dispute)

dathathreya
Creator
Creator
Author

can u please give me a set analysis expression.

sunny_talwar

May be like this

Count({<Dispute = {1}>} Dispute)

Anonymous
Not applicable

Hi Sunny,

     But in the above case, we can also use Sum(Dispute) which u mentioned earlier. Right ?. Because , however sum() will sum only '1' by ignoring '0'. If I am wrong, please correct me.

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Use as stalwar1 suggested Sum(Dispute) as this consumes less resources and is a more simple than Set Analysis.

dathathreya
Creator
Creator
Author

How to achive MOM with this?Please help

Anil_Babu_Samineni

Still you are facing issue? Can you tell us what kind of challenge you are expecting? Would you provide sample data set and tell us expected result

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
dathathreya
Creator
Creator
Author

Hi anil i got solution for that thanks for your support .

Anil_Babu_Samineni

So, Then please close this thread by flag Correct Answer of your spot light answer which you feel

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