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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

copy first value in lines above

Hello,

Can anyone help me with a function in script which inputs in Load the Command value in each line?

For example, I have the command 420803 with 3 positions and I need to appear the command value in each line.

Same for command 420890 and other more if needed.

CommandPosition
4208031
2
3
4208904
5
8
9

Thank you!

2 Replies
sunny_talwar

Try Peek() function:

Table:

LOAD If(Len(Trim(Command)) = 0, Peek('Command'), Command) as Command,

     Position

FROM

[https://community.qlik.com/thread/197295]

(html, codepage is 1252, embedded labels, table is @1);


Capture.PNG

sinanozdemir
Specialist III
Specialist III

Hi,

Maybe something like this:

Capture.PNG

And here is your data model:

Capture.PNG

I am also attaching qvw.

Hope this helps.