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

how to repeat dates till next given date in QlikView

 
 

Hi Community,

I have a Quarter End Date. And I want to repeat that date till the next delayed days.

ONLY WORKDAYS SHOULD BE CONSIDERED FOR DELAY DAYS.

Can you help me for this.

Thanks in advance.

Labels (2)
1 Solution

Accepted Solutions
Abhishekb
Contributor III
Contributor III
Author

Hi Community,

I got the answer.

let vToday = Today();
LET vQuarterEndDate = QuarterEnd('$(vToday)',-1);

Let vDelay1 = $(vDelay);
Let vDelayDate = Date(LastWorkDate('$(vQuarterEndDate)'+1,'$(vDelay1)'));

MainTable:

Put your data here....

 

Output:

Load
if(('$(vToday)'= WeekDay('$(vToday)') or '$(vToday)' <> WeekDay('$(vToday)')) and '$(vToday)' <= '$(vDelayDate)',,
QuarterEnd('$(vToday)',-1),
'$(vToday)'
) as EndResult

Resident MainTable;

 

This is the solution. Thank you

 

 

View solution in original post

1 Reply
Abhishekb
Contributor III
Contributor III
Author

Hi Community,

I got the answer.

let vToday = Today();
LET vQuarterEndDate = QuarterEnd('$(vToday)',-1);

Let vDelay1 = $(vDelay);
Let vDelayDate = Date(LastWorkDate('$(vQuarterEndDate)'+1,'$(vDelay1)'));

MainTable:

Put your data here....

 

Output:

Load
if(('$(vToday)'= WeekDay('$(vToday)') or '$(vToday)' <> WeekDay('$(vToday)')) and '$(vToday)' <= '$(vDelayDate)',,
QuarterEnd('$(vToday)',-1),
'$(vToday)'
) as EndResult

Resident MainTable;

 

This is the solution. Thank you