Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set analysis in a dimension

Hi all,

This is my data set (e.g.)

Product,       Seller

AB_12,         A

AB_13,         B

AB_14,         C

BB_11,         D

BB_12,         E

BB_13,         F

CC_12,         G

DD_12,         H

I'd like to build a sales table with a dimension that only displays those Sellers that sold a product starting with "AB*" and "BB*"

I get the set analysis part of it ... {<Product= {"AB*", "BB*"}>} but get an error when trying to display only relevant Sellers.

How can I build this dimension to show only relevant Sellers?

Many thanks!

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

You are getting an error because u need to apply aggr function in dimension.

I hope attached application will help you

Thanks

Vivek

View solution in original post

5 Replies
Not applicable
Author

Hi,

try the expression if(left(Product,2) = 'AB' OR left(Product,2) = 'BB', Seller) in your dimension and the e.g. Sum(Sales).

You can do it in the expression with your Set Analysis.

In both cases you have to uncheck "show zero values" for the dimension.

Regards

Not applicable
Author

Hi,

You are getting an error because u need to apply aggr function in dimension.

I hope attached application will help you

Thanks

Vivek

kamalqlik
Partner - Specialist
Partner - Specialist

Use the only function with this to get the appropiate results.

Hope this will help you.

You can find the attachement below.

regards

Kamal

richard_chilvers
Specialist
Specialist

Thanks. The Test1 application is useful and isa  good tip for us all.

Not applicable
Author

Many thanks Vivek and Kamal. Both approaches work just fine!