Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
mario-sarkis
Creator II
Creator II

Set analysis

‌hey alla this is my case :

i have list of ida look like this

ID.  PeriodDate  Max interaction date

some ids has not an interaction date need to flag as 'Not contacted Client' , my expression will translate this:

if (periodedate is 6 month greater  then Max interaction date or Max interaction date ,not contacted ,contacted)

date are number form

hope you can help

3 Replies
vikasmahajan

PFA Document will help you to user stand  Set analysis.

Vikas

Hope this resolve your issue.
If the issue is solved please mark the answer with Accept as Solution & like it.
If you want to go quickly, go alone. If you want to go far, go together.
elakkians
Partner - Contributor III
Partner - Contributor III

Hi ,

Try This

if(Max interaction date > AddMonth(Perioded Date,6),'not contacted',contacted)

HirisH_V7
Master
Master

Hi ,

Check this,

By using the sample data,Creating a status column based on your requirement,

Data:

LOAD *,

IF(Num(Month([Period Date])-Month([Interaction Date]))>=6,

'Not Contacted','Contacted') as Status


INLINE [

    ID, Period Date, Interaction Date

    1, 01/10/2016, 01/01/2016

    2, 01/07/2016, 01/01/2015

    3, 05/07/2016, 01/06/2016

    4, 01/08/2016, 01/03/2016

    5, 01/12/2016, 01/04/2016

];

Output:

Based on Month interval  Creating a column-223392.PNG

HTH,

PFA,

Hriish

HirisH
“Aspire to Inspire before we Expire!”