Hello Digvijay Singh,
Thanks for your response, but the problem not in the logic and I could write a null condition go with the scripting, the problem it's holding previously cache value in the system (Qlik Desktop), which needs to remove implicitly once we refresh the app, but this not happening in this case. I still tried to disabling cache in the settings, but no results
Bit confused but , as you mentioned-
"even when I tried to comment the code as below it still holds the value in it."
Just commenting won't clear the value, once the variable is created, it remains in visualization until and unless either you move NULL like I did, or you comment (like you did) as well as remove from the variable window in front end.
I agree this bit confusing, I would like to follow the steps I'm working
The below code loads the variable data from the CSV file as you see below. If you follow closely I've commented my code off and it shouldn't load any data or variables data,
When I open the app and run the scripts the below $(vCurrentMonth) still hold the past data. Even though I commented on the code, I should get an exception there's no data but it's not happening.
Let vCurrentMonth = Peek('Qvd_vCurrentMonth',vRecordNo-1,'vCurrentMonth');
Is this is the last solution for us,
Let vCurrentMonth = ;
please find the below script, I don't have an issue with my script. the only problem I have is
holding the previous values. Event though the below script is commented.