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: 
qlikfresh
Contributor III
Contributor III

Set Analysis Earliest Date

Hi Guys 

 

I have a dashboard that tracks samples pending. For a certain sample type e.g. SAMPLE_TYPE='Type1' I want to return the minimum date, while still having the ability to filter. Based on users filtering the sample might not appear in the selections, however I still want the earliest date to show despite filtering. 

 

Is this something that must be done using set analysis and if so how could I incorporate it? Thanks

Labels (2)
1 Solution

Accepted Solutions
morgankejerhag
Partner - Creator III
Partner - Creator III

Either have the value of the earliest date in a separate column for all rows to the sample type (done in the script) like

Data:
Load
   SampleID,
   SampleType,
   Date,
   ...
from Data.qvd (qvd);

left join
Load
   SampleType,
   date(min(Date)) as MinDate
resident Data group by SampleType;

Or you can do it  with set analysis where you ignore the user selections:
date(min({1} Date))

View solution in original post

1 Reply
morgankejerhag
Partner - Creator III
Partner - Creator III

Either have the value of the earliest date in a separate column for all rows to the sample type (done in the script) like

Data:
Load
   SampleID,
   SampleType,
   Date,
   ...
from Data.qvd (qvd);

left join
Load
   SampleType,
   date(min(Date)) as MinDate
resident Data group by SampleType;

Or you can do it  with set analysis where you ignore the user selections:
date(min({1} Date))