Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Zurich on Sept 24th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set Analysis for Charts - ignore selection for a Field and replace the value

Hi Qlikview Experts,

Tricky to explain in words; hence please see two tables I have loaded into the document:

IDData1Set
AA1350A
BB1200B
TT4500A
WW1250A
VV4400B

SetID_2Data2
AAA18300
BBB15520
ATT41500
AWW13550
BVV42500

As you can see the fields for ID and ID_2 have the same values. What connects the two tables is Set.

There is a List Box available to the user to select ID. The Straight Table then displays ID_2, Data1, Data2. The objective is the straight table must show data belonging to ID_2. So the challenge here now is Data1: It would naturally display the value of Data1 for the selected ID. What I want is to display the value of Data1 for the resulting ID_2 line items that are in the same Set.

I tried something like:

=SUM({<ID={[ID_2]}>}Data1)

but does not do anything.

Appreciate the assistance. Note I am unable to modify the actual loaded tables as it will drastically affect all the code across the whole document; hence, hoping for a solution thru some form of set analysis or other syntax.

Please see attached sample document that mirrors the situation. Thanks!!!

1 Solution

Accepted Solutions
sushil353
Master II
Master II

done some changes.

View solution in original post

5 Replies
sasiparupudi1
Master III
Master III

See if the attached document helps you?

basically I have created a calculated dimension where ID_2=ID, select ID

suppressed null values and in the presentation tab , hidden the column

hth

Sasi

Anonymous
Not applicable
Author

Helpful, thanks, but I may have not been very clear in explaining what I was trying to accomplish. Essentially the desired resulting straight table, for example if the user selected BB1, should be:

ID_2Data2Data1
BB15520200
VV42500400

Selecting AA1 should then result in:

ID_2Data2Data1
AA18300350
TT41500500
WW13550250

I've been trying to tweak further the changes you did on the dimensions/expressions but have not had any luck. Can you assist?

Thanks!

sushil353
Master II
Master II

Hi,

Please find attached.

HTH

Sushil

sushil353
Master II
Master II

done some changes.

Anonymous
Not applicable
Author

Thanks Sushil, your attached document solves the issue. And thanks also Sasidhar for setting up the initial code.

I have another very similar scenario and when I try to adopt the same methodology, I can't get it to work. Simplified sample below:

Two tables loaded:

LocationIDData1
Area1ABC100
Area1DEF150
Area2GHI500
Area3JKL750
Area3MNO800

IDNextID
ABCDEF
ABCGHI
DEFABC
GHIABC
GHIJKL
GHIMNO
JKLGHI
JKLMNO
MNOGHI
MNOJKL

List box will be available to user to select Location. If user selects Area1, the straight table should result in:

NextIDData1
DEF150
GHI500
ABC100

If the user selects Area2, the straight table should result in:

NextIDData1
ABC100
JKL750
MNO800

Hoping for assistance! Thanks!