Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

parul_mehta
Contributor

Passing variable from one qvw to other, and using in the second qvw

I am able to pass variable date ( vDate) from one qvw to the other ( vDate1) using a button click.

in the second qvw I want to display the data in straight table using that variable vDate1

such that dimension Date in the table should only display data as per value received in vDate1 variable.

Please suggest.

1 Solution

Accepted Solutions
trdandamudi
Honored Contributor II

Re: Passing variable from one qvw to other, and using in the second qvw

One of possible way is:

1) Say you passed a variable vDate to vDate1 (Assume you have 5/2/2017 in vDate1)

2) Then in the straight table in the expression use the following expression:

Say you have a field called 'Amount', then in the expression :

       =Sum({<Date={'$(vDate1)'}>} AMOUNT)

Note: If you have multiple expression then you need to include the set {<Date={'$(vDate1)'} in all the expressions.

Hope this helps...

View solution in original post

3 Replies
trdandamudi
Honored Contributor II

Re: Passing variable from one qvw to other, and using in the second qvw

One of possible way is:

1) Say you passed a variable vDate to vDate1 (Assume you have 5/2/2017 in vDate1)

2) Then in the straight table in the expression use the following expression:

Say you have a field called 'Amount', then in the expression :

       =Sum({<Date={'$(vDate1)'}>} AMOUNT)

Note: If you have multiple expression then you need to include the set {<Date={'$(vDate1)'} in all the expressions.

Hope this helps...

View solution in original post

parul_mehta
Contributor

Re: Passing variable from one qvw to other, and using in the second qvw

Thanks Thirumala.

I used the expression, and was able to display the values as per vDate1.

and then hid the expression column in presentation - Hide Column. ( As I don't require to show the sum or any other expression )

Attached the document with details of how to pass variable from one qvw to other. for reference

trdandamudi
Honored Contributor II

Re: Passing variable from one qvw to other, and using in the second qvw

You are welcome...