Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
qv_testing
Specialist II
Specialist II

month end Vs rolling weeks

Hi Community,

I have 2 tabs one for Revenue and second for Weekly data..

Revenue tab:  I have to show month list box January to October. (data should have associate Jan to Oct only)

this sheets effects Monthly once....

Capture.JPG

Capture.JPG

Weekly Tab:  Rolling weeks, have to show Current Month as well. (January to November and associate data Jan to Nov)

this sheet effects weekly reload.

Capture.JPG

how to manage Month End Process Vs Rolling weeks, please can you suggest?

Thanks in Advance.......

5 Replies
Anil_Babu_Samineni

Suggest to create MonthNum field in script using Number format to show number seq in Months

Num(Month(TempDate)) as Month_Num,

And then, It could be use this?

Sum({<Month_Num = {"<$(=Num(Month(Today())))"}>} Sales)

Sum({<Month_Num = {"<$(=Num(Month(Today())))"}>} Amount)


And same for Weekly report

Sum({<Month_Num = {"<=$(=Num(Month(Today())))"}>} Sales)

Sum({<Month_Num = {"<=$(=Num(Month(Today())))"}>} Amount)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
qv_testing
Specialist II
Specialist II
Author

Thanks for reply,

Actually i have many expressions, i can't change expression wise..

any possibility to set trigger level...??

If i create two calendar's will it work ??

Anil_Babu_Samineni

Trigger with sheet?? Or simple trigger for all sheets?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
qv_testing
Specialist II
Specialist II
Author

sheet wise trigger

Anil_Babu_Samineni

give it a shot, Because i don't have access to your file now due to client space

Anyway, Try this way

Create OnOpen Trigger and use Activate Sheet to First sheet object and use same as Further to add select using Month_Num as FieldName and string should be ='<' & Num(Month(Today()))


Same manner, Give it a shot as Sheet Activate from sheet level with same as action "Select in Field" to Month_Num as field name and String should be ='<=' & Num(Month(Today()))

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful