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

Compare previous months data

Hi Guys, Need suggestions for the below.

Need to identify if the performance is Red for the past 3 months (excluding current month) and mark the flag as Y in the current month record. Each record has month end date.

Output table will have only current month data. Previous months data are just for comparison and and it must be filtered out once done.

  Data:

REPORTING_PERIODIDPerformance
30/11/2017100Green
31/12/2017100Green
31/01/2018100Red
28/02/2018100Red
31/03/2018100Red
31/12/2017200Green
31/01/2018200Red
28/02/2018200Red
31/03/2018200Red

    

Output:

REPORTING_PERIODIDPerformancePast3Months Red Flag
31/03/2018100RedY
31/03/2018200RedN

Thanks:

0 Replies