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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
dseelam
Creator II
Creator II

Max and Min dates in Resident Load

Hello everyone,

I need a help!

I Have a table with 4 different date fields with different dates it has warranty start date, end date and contract start, end dates

so total of 4 dates I need Max of Warranty End(marked in red) and Min Contract Start (marked in red) which is possible through resident load

but when ever I reload it I am getting duplicates in my straight table when I analyse data came to know it is pulling max warranty end and min contract start but pulling all the dates from warranty start and contract end which is wrong

Output should should be only max warranty end date with corresponding warranty start and min contract start date with corresponding contract end

where I don't need min or max for warranty start and contract end I need only corresponding dates.

Example:

IDWARRANTY STARTWARRANTY ENDCONTRACT STARTCONTRACT ENDCOUNT
101/01/201201/01/201301/02/201301/02/20141
201/01/201201/01/201301/01/201301/02/20141
301/02/201201/01/201310/02/201201/02/20140
4----1
501/02/201201/02/201305/05/201401/09/20171

Guys please help me thanks  in advance

This is what I am using

MaxWarranty_10:

LOAD

ID,

Max(Warrantydate) AS [WARR END]

RESIDENT Warrantys

Group BY ID;


MinContract:

LOAD

SID,

Min([Contracts.START_DATE]) AS [CONTRACT START]

Resident Warrantys

Group BY SID;

0 Replies