Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
johnan
Creator III
Creator III

Peek date?

Hi, 

I have at table with dates.

I want to only have the next post after :
Where Date= Today() + Next day


2020-03-13 (I want 2020-03-13 and 2020-03-16)
2020-03-16 (I want 2020-03-16 and 2020-03-17)
2020-03-17 (I want 2020-03-17 and 2020-03-20)
2020-03-20

I forgot, but i think peek?

1 Solution

Accepted Solutions
digichap28
Creator
Creator

I would first order the table, later use peek to get the previous date and finally reorder it using ASC.

1)Loading the data

2020-03-13 
2020-03-16 
2020-03-17 
2020-03-20

2) Ordering DESC

2020-03-20 
2020-03-17 
2020-03-16 
2020-03-13

3) Using PEEK

2020-03-20 
2020-03-17 - 2020-03-20
2020-03-16 - 2020-03-17
2020-03-13 - 2020-03-16

4) Ordering ASC

2020-03-13 - 2020-03-16 
2020-03-16 - 2020-03-17
2020-03-17 - 2020-03-20
2020-03-20

 

I hope you get the idea

 

Best regards

View solution in original post

2 Replies
digichap28
Creator
Creator

I would first order the table, later use peek to get the previous date and finally reorder it using ASC.

1)Loading the data

2020-03-13 
2020-03-16 
2020-03-17 
2020-03-20

2) Ordering DESC

2020-03-20 
2020-03-17 
2020-03-16 
2020-03-13

3) Using PEEK

2020-03-20 
2020-03-17 - 2020-03-20
2020-03-16 - 2020-03-17
2020-03-13 - 2020-03-16

4) Ordering ASC

2020-03-13 - 2020-03-16 
2020-03-16 - 2020-03-17
2020-03-17 - 2020-03-20
2020-03-20

 

I hope you get the idea

 

Best regards

johnan
Creator III
Creator III
Author

Yes, thanx mate 🙂