Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Announcing the newest addition to the Qlik Community, Qlik Gallery! Learn More
Arjunarao
Honored Contributor II

Variable value is disappearing

Hi All,

I am facing strange issue.I have created a variable called vStartDate (defn=Date(Trans_Date-365)

This variable is disappearing when I reload the application.Tried many times.

I have used export excel macros in the app.

Capture.PNG

Version:

Capture1.PNG

Thanks in advance.

1 Solution

Accepted Solutions
MVP & Luminary
MVP & Luminary

Re: Variable value is disappearing

Have you another variable with the same name into your script? Ctrl + F over all tabs will help to find it.

- Marcus

5 Replies
MVP & Luminary
MVP & Luminary

Re: Variable value is disappearing

Have you another variable with the same name into your script? Ctrl + F over all tabs will help to find it.

- Marcus

Not applicable

Re: Variable value is disappearing

define a variable in your script and reload, the variable should automatically come their

for example:

LET StartDate = num(date(YearStart(AddMonths(Today(),-24,0)),'DDMMYYYY'));

Re: Variable value is disappearing

Is this variable getting created in the script or the front end of the application? I would check its definition in the script.

Re: Variable value is disappearing

Capture.PNG

Digvijay_Singh
Honored Contributor III

Re: Variable value is disappearing

Screen print says value of variable is disappearing, see whether it is initialized somewhere with null or something, but cannot say without looking at script. Is it happening with only this variable? if yes then seems to be something in the script is making the difference.