Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Less than or Equal to Set Analysis

Hi Everyone,

Please I am trying to calculate an expression for less than or equal to No Longer Here  (NLE_MonthName). I am using Set analysis to set the NLE_Year to VCurrentYear and NLE_Month=Jan. Shouldn't this set the NLE_MonthName = 'Jan 2012'? So why does the following expression fail to bring back any records.

Count ({<NLE_Year={'$(vCurrentYear)'},NLE_Month={'Jan'},NLE_MonthName {"$(<=Date(MonthEnd(Date#(DOH_MonthName, 'MMM YYYY')),'MMM YYYY'))"}>}  EmployeeDirectory.ID)

Thank you in advance,

OnePuttGirl

2 Replies
thomas_skariah
Creator III
Creator III

Hi OnePuttGirl,

You can get an idea from the below link.

http://community.qlik.com/message/253866#253866

Regards,

Tom

SunilChauhan
Champion II
Champion II

I thing you are missing = sign after NLE_MonthName

use below code

Count ({<NLE_Year={'$(vCurrentYear)'},NLE_Month={'Jan'},NLE_MonthName=

{"$(<=Date(MonthEnd(Date#(DOH_MonthName, 'MMM YYYY')),'MMM YYYY'))"}>}  EmployeeDirectory.ID)

Hope this helps

Sunil Chauhan