Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
kwnkhn
Contributor
Contributor

Parameteized Variables

Hi,

I have a document using variables with parameters throughout.

The parameters are $1,$2,$3,$4 and $5.

I would like to know the values assigned / passed to parameters $1 and $2.

How would I go about this?

Thank you.

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You will need to scan for use of the variable that uses the parameter.  For example, you make have a variable named "Add2" that is defined as:

RangeSum($1, $2)

The variable will be used in charts like:

$(Add2(3, 6))

In this case "3" will be passed to $1 and "6" to $2. 

So..if you want to see what kind of values are being used, scan for the use of the parameterized variable in expressions. You can find the variable usage in either the Expression Overview or Document Analyzer.

-Rob

View solution in original post

2 Replies
Mauritz_SA
Partner - Specialist
Partner - Specialist

Hi there

Add a KPI object and just put $($1) in it. The $() part will 'extract' the value of the variable. You can do the same for the other four variables.

If you don't need to see them in the dashboard you can just click on the x= button in the bottom left of the screen in edit mode and find your variables. Their values will be in the Definition column.

Regards,

Mauritz

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

You will need to scan for use of the variable that uses the parameter.  For example, you make have a variable named "Add2" that is defined as:

RangeSum($1, $2)

The variable will be used in charts like:

$(Add2(3, 6))

In this case "3" will be passed to $1 and "6" to $2. 

So..if you want to see what kind of values are being used, scan for the use of the parameterized variable in expressions. You can find the variable usage in either the Expression Overview or Document Analyzer.

-Rob