Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Selection in Set Analysis

Hi, QlikView community

I have a formula in set analysis:

Sum({$<Region ={‘South’, 'North', 'East'}>} Sales)



In my dataset I have South, North, East and West.

So in my set analysis I do not want have information regarding West.

But here is my problem. I want to select South and look at data regarding South.

But I can't do that if my set analysis is like that.

Do you have any idea how to do that

regards Darri

1 Solution

Accepted Solutions
anderseriksson
Partner - Specialist
Partner - Specialist

Then it is a union you are looking for.

The selected values in Region but only those that intersect with South, North or East.

Sum({$<Region *={‘South’, 'North', 'East'}>} Sales)

View solution in original post

12 Replies
gautik92
Specialist III
Specialist III

Sum({$<Region =e({‘West’})>} Sales)

Anonymous
Not applicable
Author

ok, Gowtham

But if I have dataset with millions of value and I only want three.

How can I do that.

It will take hours to exclude every value that I do not want

gautik92
Specialist III
Specialist III

then create a new field in the script match that three with match() function and make it null

Anonymous
Not applicable
Author

I can't do anything in the expression?

I have to it in the script?

Anonymous
Not applicable
Author

Have you tried Gowtham's expression ?

Set Analysis can be surprisingly quick and efficient.

anderseriksson
Partner - Specialist
Partner - Specialist

Perhaps if you explain a little more what it is you're trying to do?

Your first posting sounded like there were only four distinct values.

With that I would use;

Sum({$<Region -={‘West’}>} Sales)

gautik92
Specialist III
Specialist III

you can do it in expression

Load

....

...

from tablename where match(region,'West')=0;

nagarjuna_kotha
Partner - Specialist II
Partner - Specialist II

Hi Darri,

Can u check the Region Names are Like East,West,North,South Or not.I mean Case sensitive?

Regards,

Nagarjna

tresesco
MVP
MVP

Try like:

Sum({$<Region ={‘South’, 'North', 'East'}> * <Region=$::Region>} Sales)