Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
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

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