Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
zhbuyiqlik
Contributor II
Contributor II

Pivot Table Filter on Column

I would like to do the following in Qlik Sense.  I am wondering if there is a way to do it using a pivot table.   Alternatively, I can produce a straight table, and do the same operation.   But I'd prefer to use pivot table to do it.  Thanks!

I created a pivot table using like table 1

Table 1

RegionABC
North100010001000
East200050
West2002000
South1000

Now I want to filter on product C so that only show rows where sales for C is greater than 0.  I want the product selection to be user defined.    i.e. If the user select product A, then we would filter on A using the same condition.  

Table 2

RegionABC
North100010001000
West2002000
15 Replies
zhbuyiqlik
Contributor II
Contributor II
Author

If I understood you correctly, my original data is "organised" with one product column and a value column (sales).  What I am showing in the original post is a pivot table I created in Qlik Sense based on the original data.   The structure of the original data is like the following:

 

Client IDRegionProductSales
1NorthA1000
2NorthB500
3EastC100
4EastB1000
5SourthA500
6SourthC200
7WestA300
zhbuyiqlik
Contributor II
Contributor II
Author

Not exact number as shown in the original post, but this shows the structure.

 

Client IDRegionProductSales
1NorthA1000
2NorthB500
3EastC100
4EastB1000
5SouthA500
6SouthC200
7WestA300
OmarBenSalem

no need for the crosstable load so; just do as I've told u at first and tell me what happens

Thiago_Justen_

May be this:

Sum({<Product={"=Sum(Sales)>0"},Region={"$(=GetFieldSelections(Region))"}>}Sales)

Here we have to filters that will be done:

Region and Product

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
Thiago_Justen_

Here is the result:

Teste.gif

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
OmarBenSalem

Sum({<Region={'North','West'}>}Sales)

result:

Capture.PNG