Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I got this error after running this script:
Let vMinDate=NUM('24/02/2021');
Let vMaxDate=NUM('27/02/2021');
TEMP:
Load
If(RowNo()=1, Date( $(vMinDate),'DD/MM/YYYY'), Date( $(vMinDate) + RowNo(),'DD/MM/YYYY')) as Tempdate
AutoGenerate(1)
while $(vMinDate) + RowNo() < $(vMaxDate);
# variables
I suggest you run this in debug mode and see what the problem is. In this case, I think you'd need date#() rather than date(), though?
You can't num() on this string... it doesn't have a valid numeric representation. You'd have to make that value a date first if you want to use num() on it. Currently it's evaluating to null, as you can see in debug mode.
Thanks for your answer, I changed num() to Date() but i got the same error
Let vMinDate=Date( '24/02/2021','DD/MM/YYYY');
Let vMaxDate=Date( '27/02/2021','DD/MM/YYYY');
TEMP:
Load
If(RowNo()=1, $(vMinDate), $(vMinDate) + RowNo() ) as Tempdate
AutoGenerate (1)
while $(vMinDate) + RowNo() < $(vMaxDate);
I suggest you run this in debug mode and see what the problem is. In this case, I think you'd need date#() rather than date(), though?