Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
chapil
Contributor III
Contributor III

SETANALYSIS

Hello everyone 

I have a question : I want to put 2 conditions in my set analysis and one is compose with a function and it doesn't work 

Can someone help me with the write syntax, thanks 

So that's my problem : I want to count all the IDs wich has a date_1 null and IDs with  date_2>30 days from today 

So I wrote this expression which is false :

count ({$< [DATE 1] -={""}, [DATE 2] ={"<= today()-30"}>} [ID])

 

Thanks for the answer ! 

2 Solutions

Accepted Solutions
joaopaulo_delco
Partner - Creator III
Partner - Creator III

Hi @chapil !

             Try this:

count({$<[DATE 1]-={"-"}, [DATE 2]={"<= today()-30"}>} [ID])

 

Please if it solve the problem mark the post as solution.

Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

stevejoyce
Specialist II
Specialist II

I believe it's your date expression.  You can try this:

count ({$< [DATE 1] -={""}, [DATE 2] ={"<=$(=date(today()-30))"}>} [ID])

View solution in original post

5 Replies
joaopaulo_delco
Partner - Creator III
Partner - Creator III

Hi @chapil !

             Try this:

count({$<[DATE 1]-={"-"}, [DATE 2]={"<= today()-30"}>} [ID])

 

Please if it solve the problem mark the post as solution.

Help users find answers! Don't forget to mark a solution that worked for you!
stevejoyce
Specialist II
Specialist II

I believe it's your date expression.  You can try this:

count ({$< [DATE 1] -={""}, [DATE 2] ={"<=$(=date(today()-30))"}>} [ID])

chapil
Contributor III
Contributor III
Author

Thanks, that's working !

chapil
Contributor III
Contributor III
Author

Thanks a lot, both solutions are working 😉 

joaopaulo_delco
Partner - Creator III
Partner - Creator III

Hi @chapil , so, please mark some post as solution.

Help users find answers! Don't forget to mark a solution that worked for you!