If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.
If nooffailures=0
Load
calendarkey...
where calendarkey=today()>today()-120;
else
Load
calendarkey...
where calendarkey=today()>today()-90;
Can any one suggest how to do this requirement.
Can you explain the requirement further? It looks like you want to load a different number of days based on a variable.
Something like this maybe.
if nooffailures=0 then
let vDateCount=today()-120;
else
let vDateCount=today()-90;
ENDIF;
Load
calendarkey
From Yourfile
where calendarkey<today()+1 and calendarkey>$(vDateCount);
Update: Had to edit for the variable.
Did you get your answer?
Thanks really very good help.
Then please close thread by marking a response as the answer.