Skip to main content
Announcements
Get Ready. A New Qlik Learning Experience is Coming February 17! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
luis_dgl
Partner - Contributor II
Partner - Contributor II

Button Action to Apply Filter using Set Analysis

I tried using a Concat function to filter the values I needed, however we hit a maximum char limitation, I was wondering if it was possible to apply a filter using a Set Analysis expression.

Labels (4)
1 Solution

Accepted Solutions
luis_dgl
Partner - Contributor II
Partner - Contributor II
Author

Just to give this thread a conclusion, we found it better to just solve it using the data model, creating a new Promotions table copy (SELECAO_PROMOCAO) to link to NOTA_FORNECEDOR (Sales table copy). This way we filter all the products by simply having a selection on this table.
Screenshot 2024-02-07 110910.png

View solution in original post

6 Replies
Anil_Babu_Samineni

@luis_dgl I guess so, can you please explain more?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
luis_dgl
Partner - Contributor II
Partner - Contributor II
Author

Alright, so I have two different tables that contains the same products, one of which connects to a single Sales table, I need to select all the products from table 1, filtered from one Sale, on table 2.

I tried concatenating all the products currently filtered by the selected Sale, however when there are too many products the character maximum is reached, and no product is selected.

I was wondering if I can use a set analysis with a P operator to get all products from the sale and select them on table 2

NellyAcko
Contributor III
Contributor III

HI can you post example data and a screen shot of both tables, it sounds like it should be a fairly simple task to complete

luis_dgl
Partner - Contributor II
Partner - Contributor II
Author

Good morning,
Below is the data model from the tables. FATO_VENDAS is the total sales table, DIM_PROMOCOES is the promotions/special sales (SCD), DIM_PRODUTOS is the normal products dimension. Now, NOTA_FORNECEDOR and FORNECEDOR_SELECAO are second products table, they are a copy of DIM_PRODUTOS, which I use to filter the products which are sold together in the normal products table. What I need to do is basically select on FORNECEDOR_SELECAO the products of the same name in DIM_PRODUTOS that are filtered by DIM_PROMOCOES

luis_dgl_1-1707136806965.png

 

 

Anil_Babu_Samineni

@luis_dgl Data model won't help this case because you need something in UI, Will you able to create sample app and send it to us to look? 

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
luis_dgl
Partner - Contributor II
Partner - Contributor II
Author

Just to give this thread a conclusion, we found it better to just solve it using the data model, creating a new Promotions table copy (SELECAO_PROMOCAO) to link to NOTA_FORNECEDOR (Sales table copy). This way we filter all the products by simply having a selection on this table.
Screenshot 2024-02-07 110910.png