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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Table with current field values of a NOT selected field

Hello,

I have a set of customers with the variables: ID, Store, Age and AmountSpent. There is only one entry per ID, but several IDs can have the same [Store] value.

When I select a single ID, I want a table (table box/ straignt table...) displaying the value of all my variables for each customer that has the same [Store] value of the that customer [ID]:

     Say customer with [ID]='1001' has [Store]='A': I select the [ID] (but not a [Store]) and I want a table with 4 columns (ID, Store, Age and AmountSpent) for each customer that fulfills [Store]=='A'


I've tried using something like:

     if( [Store]=Concat(Distinct [Store], ','),   ( {< [ID = >} Age)    )

but it won't work.

I'm new to Qlik so I'd appreciate any hints that help me get closer to the solution!

Many thanks.

1 Solution

Accepted Solutions
sunny_talwar

May be try this

Dimension

ID

Store

Age

Expression

Sum({<ID, Store = p(Store)>} AmountSpent)

View solution in original post

2 Replies
sunny_talwar

May be try this

Dimension

ID

Store

Age

Expression

Sum({<ID, Store = p(Store)>} AmountSpent)

Anonymous
Not applicable
Author

It works exactly the way I wanted. Thank you very much!