Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Fill empty field with previous value.

Hi All,

First one is actual data, the second is the required result.

Actual.bmp Result.bmp

Code:

let Start = floor(makedate(1971,01,01));
let End = floor(today())+1;

let NoOfDays = End - Start;

Cal1:
Load
$(Start)+recno()-1 as Date
autogenerate
$(NoOfDays);


Cal2:
Load
Year(Date) as Year
resident Cal1;

DROP Table Cal1;


A:
LOAD
Year,
Sales
FROM
SNO.xls
(biff, embedded labels, table is Sheet1$);

Final:
Left Join(Cal2)
Load
Year,
Sales,
Year as Year1
resident A;

Drop Table A;

All kind of suggestions/solutions are most welcome.

Thanks

Gangadharan

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hei

attach is an example

View solution in original post

2 Replies
lironbaram
Partner - Master III
Partner - Master III

hei

attach is an example

Not applicable
Author

Hi

Thanks a lot... It's working fine.