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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Date index in variable

Hi all,

I am trying to get a date index nunber into a variable but unsure how..

Basically i have a field [Reporting Week Index] and i am trying to store the current value for this field in a variable.

I want it to be dynamic, so when a date in the field [Reporting Date] is selected, this will then change the variable with the [Reporting Week Index] for the date selected.

Can anyone help?

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Add a Set Variable action to the On Select trigger of [Reporting Date] to set your variable to max([Reporting Week Index]). There should be only one max [Reporting Week Index] for the Reporting Date so you'll get the right Week Index number in the variable.


talk is cheap, supply exceeds demand

View solution in original post

1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Add a Set Variable action to the On Select trigger of [Reporting Date] to set your variable to max([Reporting Week Index]). There should be only one max [Reporting Week Index] for the Reporting Date so you'll get the right Week Index number in the variable.


talk is cheap, supply exceeds demand