Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Conversion numeric value into variable data

Hi all,

generally i convert/use the date without problem, but in this case i don't obtain what I wont !

The data is always show as 20100820 instead of 20-09-2010

1) Set is defined: SET DateFormat='YYYYMMDD';

2) I have created a variable data vMaxDate =left(max({1} BPYYMD),8) (Where BPYYMD is a numeric field (not data) lenght 8 digits 20100920)

3) I have create a text box with an expression: = date#($(vMaxDate), 'DD-MM-YYYY') or = date#(vMaxDate, 'DD-MM-YYYY'), but the result is always wrong

Many Thanks in advance

1 Reply
danielrozental
Master II
Master II

You should try something like

date(date#($(vMaxDate),'YYYYMMDD'), 'DD-MM-YYYY')

or

date(date#('$(vMaxDate)','YYYYMMDD'), 'DD-MM-YYYY')