Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I would like to make a #Include script that returns these variabls:
Right now I have had to define these in the Variable Overview so I would have to define these on every document that uses these variables. Is there a way to make this a script that loads my table (see attached QlikView and XLS) and then creates these variables and then drops the table?
Thank you very much!
Quartername is a inbuilt QlikView function. If you mandatorily have to have Q1 then you have to use mapping or you have to hardcode string.
Why did this get marked as "Assumed Answered"? I just posted it.
Hi, Try using "let" & "Set" function in Edit Script box while loading the data.
I tried that but get line errors on all of the variables. Not really sure what I am doing wrong. It appears to have a problem with Peek and Concat both in the script... so how do I get the value from the table loaded into the variable?
can you attach sample file in which you tried that?
I think you need to define the variables to have the text used. For example,
vCurQtr = 'Text(Year(Today())+Max(CurYr))' & Chr(38) & '-' & Chr(38) & 'Concat(currQtr)'
I added DateAutomation2.qvw to the discussion... not sure how to add it here. ![]()
My goal is to set the variables, not leave them dynamic... so were it to run today, it would say:
There are different ways of doing it. See if this helps you
let vtoday=today();
let vCurrQtr=QuarterName (today());
let vCurrYr=year(today());
let vPriorQ4=QuarterName(today()-90);
let vPriorQ3=QuarterName(today()-180);
let vPriorQ2=QuarterName(today()-270);
let vPriorQ1=QuarterName(today()-365);
let vCurQOQYOY_Qtr =QuarterName (today()) &'|'&QuarterName(today()-90);
so how do I define that
"QuarterName(today())" returns 2013-Q1?