Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements

Breathe easy -- you now have more time to plan your next steps with Qlik!
QlikView 11.2 Extended Support is now valid through December 31, 2020. Click here for more information.

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!

Tags (2)
1 Solution

Accepted Solutions
Not applicable

Re: Set analysis in a dimension

Hi,

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

I hope attached application will help you

Thanks

Vivek

5 Replies
Not applicable

Set analysis in a dimension

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

Re: Set analysis in a dimension

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
Valued Contributor

Re: Set analysis in a dimension

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
Valued Contributor

Re: Set analysis in a dimension

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

Not applicable

Re: Set analysis in a dimension

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

Community Browser