Announcements
cancel
Showing results 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
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)

12 Replies
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

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.

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)

Specialist III

you can do it in expression

....

...

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

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

MVP

Try like:

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

Community Browser