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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
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,

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

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

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,