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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help with one to many table

Hello

I'm a newbie and I need some instructions on how to handle the tables below:

TableA

VehicleIDDocIDVIN
11abc
22def
33ghi

Table B

VehicleIDDocIDNameDate
11checkinDoc01/02/2017
12checkoutDoc02/02/2017

So if I filter out VehicleID 1 from Table A, how can I show the CheckinDoc - Date column in Qlik?

Edit1:

Also there are vehicles on Table B that have several checkinDoc for the same DocID for example as below:

VehicleIDDocIDNameDate
11checkinDoc
12checkoutDoc
13checkinDoc01/02/2017
14checkoutDoc02/02/2017

On these occasions, I want to show of course only the values that have Date filled out for checkinDoc and chackoutDoc.

Meddelandet redigerades av: BT

4 Replies
Anil_Babu_Samineni

May be change second table filed called VehicleDocID to VehicleID and then try with filter in UI using Max(Date) in text object

Update - Attached

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Well - it's not Always the MAX(Date) I need from that table, and it's a much longer table than this of course.

effinty2112
Master
Master

Hi Baris,

Try:

only({$<Name = {'checkinDoc'}>}Date)

Regards

Andrew

Not applicable
Author

Hi Andrew

I put this on the Expression Formula, but it seems it takes only the first date that it finds - it's the same date on all the vehicles that is filtered. :S