Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
salto
Specialist II
Specialist II

Find and change first date on table

Hello,

I am trying to load a table from SQL with two fields: dates and product codes. A single product code can have many dates. The table comes ordered by date and then by product code.

I would like to change the first of the dates that a product code holds, for a specific date (01/01/2001): if, for example product A has dates 5/9/2007, 6/8/2009 and 5/7/2010, then I need the first of them to be converted to 01/01/2001.

How can I achieve this? Many thanks in advance.

1 Solution

Accepted Solutions
Not applicable

Hi,

see the attached example. Open script editor last LOAD statement.

Good luck!

Rainer

View solution in original post

2 Replies
Not applicable

Hi,

see the attached example. Open script editor last LOAD statement.

Good luck!

Rainer

salto
Specialist II
Specialist II
Author

Many thanks!

Brilliant. It solved the problem.