Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
mohan2391
Creator III
Creator III

Latest 4 weeks in Trigger (Year-week combination)

Hi,

* I have a field YEAR_WEEK, which consists of data in the form of YYYY-W## (EX: 2020-W32)

* I am using this field as a filter in a sheet

Requirement: On open this sheet, latest 4 weeks should be selected in the YEAR_WEEK field (sheet trigger)

Ex:2020-W29, 2020-W30, 2020-W31, 2020-W32

 

Please help me on this

 

2 Solutions

Accepted Solutions
asinha1991
Creator III
Creator III

maybe something like this ='('&chr(39)&repalce(weekname(today()),'/','-W')&chr(39)&'|'&chr(39)&repalce(weekname(today()-7),'/','-W')&chr(39)&'|'&chr(39)&repalce(weekname(today()-14),'/','-W')&chr(39)&'|'&chr(39)&repalce(weekname(today()-28),'/','-W')&chr(39)&')'

View solution in original post

Brett_Bleess
Former Employee
Former Employee

The other option would be to use the triggers along with actions to accomplish things, see the following Help links:

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Sheet_Propertie...

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Button2.htm#anc...

I believe that should give you another avenue here. 

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.

View solution in original post

2 Replies
asinha1991
Creator III
Creator III

maybe something like this ='('&chr(39)&repalce(weekname(today()),'/','-W')&chr(39)&'|'&chr(39)&repalce(weekname(today()-7),'/','-W')&chr(39)&'|'&chr(39)&repalce(weekname(today()-14),'/','-W')&chr(39)&'|'&chr(39)&repalce(weekname(today()-28),'/','-W')&chr(39)&')'

Brett_Bleess
Former Employee
Former Employee

The other option would be to use the triggers along with actions to accomplish things, see the following Help links:

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Sheet_Propertie...

https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/Button2.htm#anc...

I believe that should give you another avenue here. 

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.