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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
andynext
Partner - Contributor II
Partner - Contributor II

Equivalent of nested query

Hi, it's possible in Qlik Expression to make a selection based on other select ?

table_1 :

ID_commandID_command_detailPRODUCT
111banana
112apple
113orange
221banana
222apple

I want to display in a table : SELECT *  from table_1 WJERE ID_command IN ( SELECT ID_command WHERE PRODUCT ="orange" )


If I use in the first column :  if(PRODUCT='orange', ID_command ) , the result is

ID_commandID_command_detailPRODUCT
113orange


and not all product of ID_command = 1


Thanks

1 Solution

Accepted Solutions
sunny_talwar

May be you need this

Count({<ID_command = P({<PRODUCT = {'orange'}>})>} PRODUCT)

View solution in original post

2 Replies
sunny_talwar

May be you need this

Count({<ID_command = P({<PRODUCT = {'orange'}>})>} PRODUCT)

andynext
Partner - Contributor II
Partner - Contributor II
Author

thank you very much, I just discovered P et E partition in SetAnalysis