Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis with null and or exceeded dates

Hey Guys need a little help , 

Count({$<State={'Committed','QC','Promote'},TargetDate2={"< Today()"}>

+

$<State={'Committed','QC','Promote'}, TargetDate2 ={'NULL'}>

}WorkID)

I need states that are Commited Qc and promote  with either Target date is = 'NULL'  or with a target date <  Today

I am only getting nulls  in  but not exceed dates. 

Thank You.

1 Solution

Accepted Solutions
Not applicable
Author

Thank You guys I got it trying this Thanks.

Count(

{

$<State={'Committed','QC','Promote'},TargetDate2={"<$(=Today())"}>

+

$<State={'Committed','QC','Promote'}, TargetDate2 ={'NULL',"< Today()"}>

}

WorkID)

View solution in original post

8 Replies
miguelbraga
Partner - Specialist III
Partner - Specialist III

Your set analysis expression is wrong as far I know it should be something like this:

=Count({$<State={'Committed','QC','Promote'},TargetDate2={$(=Today())}>WorkID) +

Count({$<State={'Committed','QC','Promote'},TargetDate2={$(=null())}>WorkID)


Hope it helps


Not applicable
Author

Not working  I need both Dates Less than Target date and 'NULL'  In TargetDate2 I have a filter that outputs nulls as NULL.  (for selection purposes .  Thank You however

miguelbraga
Partner - Specialist III
Partner - Specialist III

UPDATED:

Try this change:

=Count({$<State={'Committed','QC','Promote'},TargetDate2={"<$(=vToday)"}>WorkID) +

Count({$<State={'Committed','QC','Promote'},TargetDate2={'NULL'}>WorkID)


And add a variable with the name:

vToday      With the expression          =Today()

tamilarasu
Champion
Champion

You can also try lik this...

=Count({$<State={'Committed','QC','Promote'},TargetDate2={"<$(=date(today(),'DD.MM.YYYY'))"}>WorkID) +

Count({$<State={'Committed','QC','Promote'},TargetDate2={'NULL'}>WorkID)

I assume that the date format for the field Target2 as 'DD.MM.YYYY'.. If not change it according to your data.

Not applicable
Author

tried with variable also not working

Not applicable
Author

tried not working thank you however

Not applicable
Author

Thank You guys I got it trying this Thanks.

Count(

{

$<State={'Committed','QC','Promote'},TargetDate2={"<$(=Today())"}>

+

$<State={'Committed','QC','Promote'}, TargetDate2 ={'NULL',"< Today()"}>

}

WorkID)

varunreddy
Creator III
Creator III

Check the format of the date field. Date format you are using might be string