Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
louisernould
Contributor III
Contributor III

fill transformation for multiple files

hi everybody,

i'm a newbee in Qlikview and I have a problem with the fill transformation.

here it is:

I want to analyse a just some lines in multiples excel files:  I have 50 files with quite the same name (test1.xls, test2.xls,...test50.xls and it is the same architecture in the files) and I want only the 3 first lines. So, I used "where RowNo()<3" at the end. No problem for this.

My problem appears because I have in my fist column one date (date1) for other dates (Date2) and when do the "fill transformation", the final table makes the fill transformation only for the first file and not for the other.

To resume: I have two steps I have to do:

- make a big table with the 3 first lines of multiples excels files

- fill the empty fields with the upper date

for example:

test1.xls

Date1Date2quantity
01/01/201401/01/201410
02/01/201410
03/01/201420

test2.xls

Date1Date2quantity
02/01/201402/01/201410
03/01/201420
04/01/201420

test3.xls

Date1Date2quantity
03/01/201403/01/201420
04/01/201420
05/01/201430

The final Table that qlikview gives me:

Date1Date2quantity
01/01/201401/01/201410
01/01/201402/01/201420
01/01/201403/01/201420
02/01/201402/02/201410
03/01/201403/01/201420

And what I really want:

Date1Date2quantity
01/01/201401/01/201410
01/01/201402/01/201420
01/01/201403/01/201420
02/01/201402/02/201420
02/01/201403/01/201420
02/01/201404/01/201430
03/01/201402/01/201430
03/01/201403/01/201430
03/01/201404/01/201440

My code is:

LOAD

     Date1,

     Date2,

     quantity

    

FROM

(biff, embedded labels, filters( Replace(1, top, StrCnd(null))))

where RowNo()<3;

I really hope it's enough clear, if it's not, don't hesitate, tell me and i will try to be more

I tried a lot of thing but now I don't have more ideas...

Thanks a lot

Louis

10 Replies
louisernould
Contributor III
Contributor III
Author

Hi again

Thank everybody for all your answers !!

I got it !!  The problem was about RowNo() and RecNo()... and from Manish with his solution

The answer was here: rowno() and recno()

Have a nice day , and thanks again for the differents solutions you gave to me

Louis