Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Insert peek values

Colleagues, good day!
Would be glad to get some advise to solve this task:

I have simple table with following structure:

1.jpg

i need to insert to this table several records (per each month) with this condition:
id - get previous id value

date - get monthend value

sales1 - get previous value

Sales2 - get previous value

so the result should be the following:

2.jpg

There's sample in the attachment.

Thanks.

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Does this make sense?

Capture.PNG

//Script:

Main:

LOAD id,

     Date,

     Sales1,

     Sales2

FROM

Test1.xlsx

(ooxml, embedded labels, table is Sheet1);

Join

LOAD id, Sales1, Sales2,MonthEnd(Date) as Date Resident Main;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni

Does this make sense?

Capture.PNG

//Script:

Main:

LOAD id,

     Date,

     Sales1,

     Sales2

FROM

Test1.xlsx

(ooxml, embedded labels, table is Sheet1);

Join

LOAD id, Sales1, Sales2,MonthEnd(Date) as Date Resident Main;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Thanks!)