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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
julian_ortiz
Partner - Contributor III
Partner - Contributor III

Select related records

Hi.

Im have one straight table

julian_ortiz_0-1620390763805.png

If I select a value on item_name field, e.g 10, Qlik shows only the records that have 10 (as expected)

julian_ortiz_1-1620390938597.png

 

Is there a way (expression or script) to show the records that are "related" with 10?, I need to show the barriers related with selected value (image below). 

julian_ortiz_2-1620391161603.png

Thanks in advance

 

 

 

 

3 Replies
edwin
Master II
Master II

one way i can think of is storing the selected value (assuming user selects only one) in a variable, then in your set analysis,  use the p function to look for all products where item_name (?) = the selected number.

of course you also want to address the scenario where no item_name is selected so you can maybe do that in an if statement testing selected count of item_name

Digvijay_Singh
MVP
MVP

 What do you mean by 'related with 10', the records you have highlighted in red, I don't understand how they are related with 10?

edwin
Master II
Master II

edwin_0-1620393844623.pngedwin_1-1620393885485.png

the first exp uses a variable, the other does not