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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
alemberg
Contributor III
Contributor III

Date List with Set Analysis

I am pulling out a list of dates on to my dashboard, but I would like to display only the dates related to a status of scheduled or completed. I cant seem to figure out the correct syntax.

Thank you in advance

1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

How about this:

Date as dimension

Only({<Status = {'scheduled, 'completed'}>} [Start Time]) as expression

View solution in original post

4 Replies
sunny_talwar
MVP
MVP

May be this:

Aggr(Only({1<status = {'scheduled, 'completed'}>} DateField), DateField)

Kushal_Chawda
MVP
MVP

or create the Flag in script like below

LOAD *,

          if(match(status,'scheduled','completed'),Date,null()) as DateNew

......

Now you can directly use DateNew as Dimension

if Status & Date fields are from different table then go for what sunny has suggested

alemberg
Contributor III
Contributor III
Author

Allow me to clarify as I am still doing something wrong. When I drag the attribute "Start Time" I am getting a list of dates. I would like only the dates which are associated with the "Status" of Scheduled. I will do another list for Completed.

I am starting with the following in the expression [Start Date]

sunny_talwar
MVP
MVP

How about this:

Date as dimension

Only({<Status = {'scheduled, 'completed'}>} [Start Time]) as expression