Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Paknanarn23
Creator II
Creator II

I have multiple start times.

I want to use the last time of the start time in I tried to code Max(Remark (Start Time)) but it didn't work.

Paknanarn23_0-1675050239933.png

 

Labels (5)
1 Solution

Accepted Solutions
MayilVahanan

Hi

You have multiple dates at the same rows and it's in text format.

You can split the dates by using subfield() function and then convert the dates from text format to date format by using timestamp(timestamp#()) like below

subfield([Remark (Start Time)], ';') as datefield

timestamp(timestamp#(datefield, 'MM/DD/YYYY HH:mm:ss'), 'MM/DD/YYYY HH:mm:ss')

Then you can use Max(datecolumn) will work .

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
sidhiq91
Specialist II
Specialist II

@Paknanarn23  Could you please  post some sample data?

Paknanarn23
Creator II
Creator II
Author

This is the information I have.

Paknanarn23_0-1675058062604.png

But I only output one last value.

Paknanarn23_1-1675058147196.png

I use this code but it doesn't come out.

Paknanarn23_2-1675058213386.png

 

 

 

MayilVahanan

Hi

You have multiple dates at the same rows and it's in text format.

You can split the dates by using subfield() function and then convert the dates from text format to date format by using timestamp(timestamp#()) like below

subfield([Remark (Start Time)], ';') as datefield

timestamp(timestamp#(datefield, 'MM/DD/YYYY HH:mm:ss'), 'MM/DD/YYYY HH:mm:ss')

Then you can use Max(datecolumn) will work .

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.