Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rabbani_sk
Contributor III
Contributor III

Display the only matched values in the chart disregarding the selection

HI All,

I have a requirement need to display the report only for matched values between the tables disregarding the selections,

I have below Tables with join key ID

Table 1:

IDValue1
1w1
2w2
3w3
4w4
5w5

Table2:

IDValue2
1w1
2w1
3w1
4w1
5w1

If i consider a bar chart with dimension as "ID" and expression as Count({$<Value1>}Value2) .

Take Value1 in a list box, and do some selections w1,w2,w3,w4,w5 seperately then the chart is giving count of 5 in the chart.

Expected Result:

In the chart i am getting all data for all value selections w1,w2,w3,w4,w5.

Actually expected result is, It shud not display all data in the chart for  the values w2,w3,w4,w5 it only need to dispaly all data for the selection w1.

Is there any way to do it ?

Thanks in advance

Please find the attached sample .qvw file

1 Solution

Accepted Solutions
Gysbert_Wassenaar

Try this expression in your bar chart: =count({$<Value1,Value2={'$(=only(Value1))'}>}Value2)


talk is cheap, supply exceeds demand

View solution in original post

4 Replies
Gysbert_Wassenaar

Try this expression in your bar chart: =count({$<Value1,Value2={'$(=only(Value1))'}>}Value2)


talk is cheap, supply exceeds demand
rabbani_sk
Contributor III
Contributor III
Author

Thanks alot Gilbert Wassenaar it is perfectly working as expected

Anonymous
Not applicable

Hi Rabbani,

I'm glad to see your issue is resolved. Please take a moment to Mark Replies as Correct or Helpful.

Thank you,

Qlik Community Team

Gysbert_Wassenaar

You're welcome Robin


talk is cheap, supply exceeds demand