Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Set analysis syntax

Hi All,

How to find greater than in set analysis

example

if(AppointmentDate>Order_date, count(Reason),0)

How to add the above statement in set analysis

Thanks in advance

2 Replies
Anonymous
Not applicable
Author

Hi Shanmuga,

Please try:

In UI use below expression in set analysis
Count ({<(AppointmentDate = {"=AppointmentDate > Order_date"} >} Reason)

or

Count(if(AppointmentDate > Order_date,Reason))


or

Create a flag in Script:

if( AppointmentDate >Order_date,1,0) as Dateflag,


and in UI use below expression in set analysis:

count({<Dateflag={1}>} Reason)

Regards

Neetha

PrashantSangle

Hi,

Try something like this,

Count({<AppointmentDate={">$(=Order_date)"}>}Reason)

or

count(if(AppointmentDate>Order_date,Reason,0))

Regards,

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂