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: 
rolandg1881
Creator
Creator

Join

Hi everybody!

One question please!

I have to tables

Table1

PRODUCT

LOAD

productname

productId

productgroupId

 

Table2

PRODUCTGROUP

LOAD:

productgroupId

productgroupname

----------------------------------------------------

In this case i see all productgroupnames in a selectionfield but i only want to see the productgroups witch included in the Product table

Can you help me please?

Greetings

Roland

Labels (1)
3 Replies
QFabian
MVP
MVP

Hi!, you can add the EXISTS function to your second table load, check the code in red :

Table1

PRODUCT

LOAD

productname

productId

productgroupId

 

Table2

PRODUCTGROUP

LOAD:

productgroupId

productgroupname

From your source

WHERE EXISTS (productgroupId, productgroupId);

 

 

Here the link to qlik help about it :

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Scripting/Inter...

 

Greetings!! Fabián Quezada (QFabian)
did it work for you? give like and mark the solution as accepted.
rolandg1881
Creator
Creator
Author

Thank you! I will try it!

MayilVahanan

Hi @rolandg1881 
You can try with left keep /left join also.

Product:

Load  productname,productId,productgroupId from ursource;

PRODUCTGROUP:

Left keep (Product)

LOAD productgroupId,productgroupname from ursource;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.