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

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to write OR condition in set analysis

HI all,

          How to write  OR condition in set analysis.???

1 Solution

Accepted Solutions
danielrozental
Master II
Master II

=count({$<Qty_no={23},Value={9,10},YEAR={2012}>} Sales)

View solution in original post

6 Replies
danielrozental
Master II
Master II

You can't do an OR with different field conditions, what you could do is use more than one expression.

Why don't you post your expression so we can help you?

Not applicable
Author

Thank you for reply.I want to write the equation as follows

=count({$<Qty_no={'23'},Value={"9"} or {"10"},YEAR={'2012"}>} Sales)

danielrozental
Master II
Master II

=count({$<Qty_no={23},Value={9,10},YEAR={2012}>} Sales)

Not applicable
Author

Thank you very much .one more question regarding the set analysis.How to include and exclude a set of values of different fields in set analysis.

=count({$<Qty_no={23},value{9,10},Year={2012}>} Sales)/count(Value{3,4,5},year={2012}

I included the values 3,4 and 5 in denominator and also want to exclude another set of values of  another field meanvalue ={1.2,2,3} from the denominator how can I exclude?

danielrozental
Master II
Master II

=count({$<Qty_no={23},value{9,10},Year={2012}>} Sales)/count({<Value={3,4,5},year={2012},meanvalue-={1.2,2,3}

Not applicable
Author

Thank you Daniel