Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
parul_mehta
Partner - Creator
Partner - Creator

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
Master II
Master II

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
Master II
Master II

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...

parul_mehta
Partner - Creator
Partner - Creator
Author

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
Master II
Master II

You are welcome...