Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Remove selected fields from dimension

Please consider the following 3 triggers for different product:

Trigger1 - Product1

Trigger2 - Product2

Trigger3 - Product3

I have a field for product consisting of above 3 products :

Product

Product1

Product2

Product3

How can I make a table with a dimension 'Product' which work as follows :

If 'Trigger1' is selected, the dimension table shows 'Product2' and 'Product3' ,

If 'Trigger2' is selected, the dimension table shows 'Product1' and 'Product3' ,

If 'Trigger3' is selected, the dimension table shows 'Product1' and 'Product2' ,

If 'Trigger1' and 'Trigger2' is selected, the dimension table shows 'Product3'

.....

Basically, whichever triggers are selected, the same products shouldn't come in the dimension while calculating expressions.

5 Replies
Chanty4u
MVP
MVP

did u try select in field trigger?

tresesco
MVP
MVP

May be like:

Chart dim: Product

Exp: Sum({<Trigger=e(Trigger)>}Amount)

vikasmahajan

check with this https://community.qlik.com/thread/87839

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
Kushal_Chawda

Instead you can try to use the product Field itself to select

Dimension: Product

Expression:

=Sum({<Product = e(Product)>}Amount)

Update

Not applicable
Author

You can put a select in field trigger in Actions

For Trigger1 => Product1

in Field type Product

and in Search String put ("Product2"|"Product3") , don't use = sign in search string

For Trigger2 =>

in Field type Product

and in Search String put ("Product1"|"Product3") , don't use = sign in search string

For Trigger3 =>

in Field type Product

and in Search String put ("Product1"|"Product2") , don't use = sign in search string

Regards,

Anjali Gupta