Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
swetasingh
Partner - Contributor III
Partner - Contributor III

Filter for 2 different dimension value in the one master table dimension

I have the following data set : 

Data 1  
   
Customer IDCustomer FeatureDesc 
C1A1ABCD
C1A2EFGH
C1A3IJKL
C1A4MNOP
C2A4MNOP
C2A3IJKL
C2A1ABCD
C2A2EFGH
C2B3uvwx
C3A1ABCD
C3B3uvwx
C3B2xyza
C3A4MNOP
C3A3IJKL
C4A2EFGH

 

Data 2

Customer ID1Customer ID2Similar
C1C2100
C1C399
C1C444
C2C133

 

Presently, I am showing top similar customers based on similar # using sankey chart. 

My Problem is I also want to show top customer features making the customers look similar. 

for Example if user selects C1 in the sankey chart, it will show B1,B2 AND B3 as identical customers

and the features gets updated in the bar chart for with frequency of features C1.

but when the user selects B1, the frequency of features should get updated with both C1 and B1. 

 

The expected output is 

If Customer ID selected is C1, Identical customers are C2, C3, C4 as per data 2. 

Count of Features should be :

ABCD3
EFGH3
IJKL3
MNOP3
uvwx2
xyza1

 

but when customer selects customer ID2 as C4, count should change to 

ABCD1
EFGH2
IJKL1
MNOP1

 

I am presently trying to show this on Bar Chart , but any other suggestion is welcomed.

Thank you.

Labels (2)
2 Replies
JordyWegman
Partner - Master
Partner - Master

Hi,

What you need is to expand the second table:

Customer ID1Customer ID2Similar
C1C2100
C1C399
C1C444
C4C4?
C2C133

 

With this expansion, both the C1 and C4 from Customer ID1 are selected.

Jordy

Climber

Work smarter, not harder
swetasingh
Partner - Contributor III
Partner - Contributor III
Author

How should i expand the table? Could please explain with an example ?