Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
stephane_kosior
Creator
Creator

How to select a period when opening the document or sheet ?

Hi,

How to select a period of time when opening the  document or sheet ?

Thanks

Stéphane

1 Solution

Accepted Solutions
stephane_kosior
Creator
Creator
Author

Found :

 

='(<='&vEndPeriod&' >='&vStartPeriod&')'

 

Thanks to all !

Have a good day

Stéphane

View solution in original post

8 Replies
Taoufiq_Zarra

if it's on Qlikview then:

Sheet Properties->Triggers

OnActivateSheet-> Add Actions->Add->Selection->Select in Field

voilà

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
sergio0592
Specialist III
Specialist III

Hi,

You can use Trigger in Doc poperties/Trigger. You ca use On open and  Select in Field actions.

P3.jpg

 

stephane_kosior
Creator
Creator
Author

Thanks but my question was confusing ... I knew the Trigger ... but my question was about the criteria to select the period.

E.g : if I want to get the current month selected how to do that ?

Thanks

Stéphane

Taoufiq_Zarra

Maye be :

Capture.PNG

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
stephane_kosior
Creator
Creator
Author

Thanks but nothing happens !

Taoufiq_Zarra

can you share a sample Data ?

Regards,
Taoufiq ZARRA

"Please LIKE posts and "Accept as Solution" if the provided solution is helpful "

(you can mark up to 3 "solutions") 😉
stephane_kosior
Creator
Creator
Author

Sorry it works with your example as I made a mistake usine '=YearMonth' instead of 'YearMonth'

Now great but if I want to use 2 variables (I mean a period between 2 dates)

vStartPeriod = 2020-01-01

vEnd Period = 2020-02-29

Thanks,

Stéphane

 

stephane_kosior
Creator
Creator
Author

Found :

 

='(<='&vEndPeriod&' >='&vStartPeriod&')'

 

Thanks to all !

Have a good day

Stéphane