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

Problem whith follow line

Hello everybody,

I have a "simple" question in qlikview i have this tab:

pbfollow.jpg

I want a variable ("End") who takes the follow date to calculate the duration of PROGR_OPERAZ like this:

end.jpg

I know the 'Previous' expression but i don't know how to take the next expression!

Any idea?

Thank a lot everybody!

1 Solution

Accepted Solutions
Gysbert_Wassenaar

This should do the trick:

TempTable:

Load

serial_number,

progr_operaz,

Start

from ....etc;

Table:

Load *,

peek('Start') as End

resident TempTable

order by serial_number, Start desc;

drop table TempTablel;


talk is cheap, supply exceeds demand

View solution in original post

7 Replies
Gysbert_Wassenaar

In this case you want below(start)


talk is cheap, supply exceeds demand
Not applicable
Author

exactly it's what i wan't

Not applicable
Author

you know how to do that in the script?

Not applicable
Author

please help me the below function is ok but not in the script!

How can i do that in the script???

Thanks everybody

Gysbert_Wassenaar

This should do the trick:

TempTable:

Load

serial_number,

progr_operaz,

Start

from ....etc;

Table:

Load *,

peek('Start') as End

resident TempTable

order by serial_number, Start desc;

drop table TempTablel;


talk is cheap, supply exceeds demand
Not applicable
Author

You can´t use bellow() in Script .

there´s a little bug at you´re table, on line 13 the End time is smaller than the Start time 😃

i don´t know if it works, but you can try to create the variable with an if() statment where you use the RowNo() and the ColumNo() function, there you can define to take the value from the next row and colum.

I don´t have time to try it, sorry.

Not applicable
Author

congratulation and thank you it resolve my problem!!!!!!

Have a good day