Qlik Community

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Customer & Partners, DEC. 9, 11 AM ET: Qlik Product & Strategy Roadmap Session: Data Analytics REGISTER NOW
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
Partner

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
Partner

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