Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
wgonzalez
Partner - Creator
Partner - Creator

Filtering data in a table.

Hi,

In a pivot table QV is showing all transactions in table Trans even if there is no corresponding record in table Emp. That's because Trans is a history table having all the transactions, while Emp has active employees only.  I don't want QV to show transactions that does not have a corresponding associated record in the Emp table. 

In SQL I can filter data in a table to get a selected group of records, I would do this:

select EmpID, Date, Transtype

from Emp, Trans

where Emp;.EmpID = Trans.EmpID

How would I do the same in QV?

Can I use a Set Modifier to use to perform that or should I do it in the script?

Thanks.

4 Replies
Not applicable

you mean you've got two separete tables in QV? (check Ctrl+T)

wgonzalez
Partner - Creator
Partner - Creator
Author

Yes, one for employees and another for transactions.  It has its purpose.

MayilVahanan

HI,

     You can use inner join both the table like,

     Load * from TableA;

     inner join(TableA)

     Load * from TableB;

     (or)

     Simply concatenate both table

    

     Load * from TableA;

     Concantenate(TableA)

     Load * from TableB;

     (or)

     Use can use exists functionality too,

     Load *,Id as TransId from TableA;

     Load *,Id as TransId from TableB where exists(Id,TransId);

     Hope it helps

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

Thanks Mayil!