Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
flavioamcoutinho
Contributor
Contributor

Convert Date to Number by Peek

For i = $(numeroInicio) to $(numeroFim)
for j = 0 to $(nRows)

Let vData = Peek('Data',$(j));


Let vDataNum = num(Date#($(vData), 'DD-MM-YYYY'));


Trace $(vDataNum);

Next j;
Next i;

2 Replies
SumitaKumari
Partner - Contributor II
Partner - Contributor II

What is your question here ?

marcus_sommer
MVP
MVP

Your peek-statement missed the third parameter and of course must the used format-pattern be fitting to the data and the variable-content mustn't contain any comma.

Beside this such adjustments are usually better done within a load-statement and not with extra (nested) loops on the outside.

- Marcus