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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

To pick the value in the variable

Hi Masters,

I have a table in which there are two columns Pipeline Scenario Date, Pipeline Scenario Categories.

In front end I have Pipeline scenario Categories displayed in the list box

I want when the user select in any of the pipeline scenario categories the pipeline scenario date associated with that category will get store in a variable

and that variable il use in my set

Appreciate your help

Thanks in advance

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Use this in the script:

Set vScenDate = =Max([Pipeline Scenario Date]);

Now if you select a pipeline scenario, then the vScenDate will contain the corresponding date.

You could also use Min instead of Max. If you want the variable to contain nothing when no scenario category is selected, then change Max to Only.

Regards

Jonathan

The double = sign is not a typo

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
Not applicable
Author

Hi,

Create a variable and use GetCurrentSelections(Fieldname) in definition. Fieldname must be based on Pipeline Scenario Categories.

Regards,

Janzen

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

Use this in the script:

Set vScenDate = =Max([Pipeline Scenario Date]);

Now if you select a pipeline scenario, then the vScenDate will contain the corresponding date.

You could also use Min instead of Max. If you want the variable to contain nothing when no scenario category is selected, then change Max to Only.

Regards

Jonathan

The double = sign is not a typo

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Anonymous
Not applicable
Author

Thanks Jonathan

What a answer thanks for the quick response tooo:)