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: 
Karuetl
Creator II
Creator II

Quarter month loop

 
 
I want to make DT  loop thrice each quarter for all 3 months in the previous quarter. In other words, when runs on 4th calendar day  it should produce data for Jan, Feb and Mar . How can i achieve running job every quarter month

select col 1 , col2 from table A 
WHERE(DT1 >=  '2018-12-01' AND DT<=  '2018-12-31')
Labels (2)
2 Replies
akumar2301
Specialist II
Specialist II

why donot you use database property

to run same query in tloop(i)

select xxxx where DT = add_months(sysmonth ,-i)

write in a separate file in each time.

to schecule this quaterly you can use cron trigger on jon conductor
Karuetl
Creator II
Creator II
Author

Yes i tried using database to get dates but i am unable to filter in tmap using context variable as below 

 

!row4.INDATE.before("context.FIRST_DAY_OF_1ST_QUARTER") &&
!row4.INDATE.after("context.LAST_DAY_OF_1ST_QUARTER")