Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

How to write the script ?

Hi All,

I have declared a variable vSelect in my sample model which has the value - which the user will select 'Fiscal Year' and 'Fiscal Period'

eg,

vSelect = =GetFieldSelections([Planning Year])  * 100 + GetFieldSelections([Planning Period])

201601Capture.PNG

I want to use this variable in the qlikview script -

select * as vCurrMonth FROM JNBVDW02A.[edw].[dbo].[qlk_dim_period] where [Fiscal Year] >=2015 and [fiscal_month_key]=vSelect;

How to do that ?

sample attached.

Thanks,

1 Solution

Accepted Solutions
sunny_talwar

Try using a trigger to assign numeric value to vSelect and then try to use it in the script

View solution in original post

2 Replies
sunny_talwar

Try using a trigger to assign numeric value to vSelect and then try to use it in the script

suvechha_b
Creator III
Creator III
Author

Hi Sunny ,

Didn't got you

Please show by screenshot.

Any also show how to write in script.

Many Thanks,