Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Montassar
Contributor
Contributor

chercher la valeur de l'enregistrement suivant

Bonjour la communauté, 

Je cherche la fonction de recherche de la valeur de l'enregistrement suivant dans une table, l'équivalent de 'previous' qui cherche la valeur de l'enregistrement précèdent.

Merci à vous.

 

 

Labels (2)
1 Solution

Accepted Solutions
vinieme12
Champion III
Champion III

There is no opposite equivalent of previous

You basically just sort the data the opposite way so that the next row becomes the previous row 

 

For example

temp

Load *, previous (Dim1) as PreviousDim inline [

Dim1,Date 

1,1/1/2022

2,1/2/2022

3,1/3/2022

4,1/4/2022

5,1/5/2022

];

Temp2:

Load *, Previous (Dim1) as NextDim

resident Temp 

Order by Dim1 Desc;

Drop table Temp;

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

2 Replies
vinieme12
Champion III
Champion III

There is no opposite equivalent of previous

You basically just sort the data the opposite way so that the next row becomes the previous row 

 

For example

temp

Load *, previous (Dim1) as PreviousDim inline [

Dim1,Date 

1,1/1/2022

2,1/2/2022

3,1/3/2022

4,1/4/2022

5,1/5/2022

];

Temp2:

Load *, Previous (Dim1) as NextDim

resident Temp 

Order by Dim1 Desc;

Drop table Temp;

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
Montassar
Contributor
Contributor
Author

thanks for your help