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: 
Not applicable

Set Analysis Question

Hello,

I was wondering how to use set analysis to consider the value of another column.

For example.

I want to count all the dates1 that are bigger than their date2.

I was thinking some like:

=count({$<dates1 ={'>=(date2)'}>}dates1 )

But is not working, im not sure why.

Wihtout set analysis i would try to use if like this:

=sum(if(dates1>=date2,1,0))

The problem is that im just learning set analysis and im trying to use it now.

Can anyone help me?

thx

Labels (1)
2 Replies
maxgro
MVP
MVP

maybe at pag. 14 of this pdf doc

Set Analysis: syntaxes, examples

MK_QSL
MVP
MVP

COUNT({<date1 = {"=date1 >= date2"}>}date1)