Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Previous value in script load Excel file

Hi all,

I have scenario in which i have to load numbers of phones in script. But format of Excel File is complicated:

NumberTrafficLimit
9308140233324200
11
100
76
930814055511300
22300
44100
930814077732100
230

So I need in load script fulfill the 'Number' field using Previous  function. The first value of phone number need to be inserted in below empty spaces , untill new number.

I want this result:

NumberTrafficLimit
9308140233324200
930814023311
9308140233
9308140233100
930814023376
930814055511300
930814055522300
930814055544100
930814077732100
9308140777230

Thank you

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hello Alexander,

Just play with the Enable Transformation step in the File wizard, you will get the required output.

Data:

LOAD RecNo() as RowNo,

    Number,

    Traffic,

    Limit

FROM

Book11.xlsx

(ooxml, embedded labels, table is Sheet1, filters(

Replace(1, top, StrCnd(null))

));

Capture.PNG

View solution in original post

5 Replies
Not applicable
Author

so I expect this result:

NumberTrafficLimit
9308140233324200
930814023311
9308140233
9308140233100
930814023376
930814055511300
930814055522300
930814055544100
930814077732100
9308140777230
muniyandi
Creator III
Creator III

Hi Try this code

Temp:

LOAD

    Number,

    Traffic,

    Limit

FROM [lib://Muni/half result.xlsx]

(ooxml, embedded labels, table is Sheet3);

NoConcatenate

NewPeek:

Load RecNo() as No,Number,if(IsNull(Number),Peek(Number1,-1),Number) as Number1,Traffic,

    Limit

Resident Temp;

Drop Table Temp;

tamilarasu
Champion
Champion

Hello Alexander,

Just play with the Enable Transformation step in the File wizard, you will get the required output.

Data:

LOAD RecNo() as RowNo,

    Number,

    Traffic,

    Limit

FROM

Book11.xlsx

(ooxml, embedded labels, table is Sheet1, filters(

Replace(1, top, StrCnd(null))

));

Capture.PNG

Not applicable
Author

It help ! Mucho gracias !

Not applicable
Author

It ' s not working .

I get this :

Number1TrafficLimit
9308140233324200
930814023311
100
76
930814055511300
22300
44100
930814077732100
230