Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
beck_bakytbek
Master
Master

fill out the rows

Hi Folks,

i have a Question, i am trying to fill out the rows in script area, but i don't have the expected Output, my table does look like:

ProjectDataEmplAmount
200102.02.20171230
200103.02.2017--
200104.02.20171820
200105.02.2017--
200106.02.2017--
200107.02.2017--
200108.02.20171410

 

and my expected Output is:

ProjectDataEmplAmount
200102.02.20171230
200103.02.20171230
200104.02.20171820
200105.02.20171820
200106.02.20171820
200107.02.20171820
200108.02.201714

10

 

Does anybody have any idea how to resolve this issue?

 

Thanks a lot

 

Labels (1)
2 Solutions

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi 

after you loaded the initial table 

let call the table : Table1

you can add to your script 

Table2:

noconcatenate load Project,

                                          Data,

                                         if(isnull(Empl),peek('Empl'),Empl) as Empl

                                         if(isnull(Amount),peek('Amount'),Amount) as Amount

resident Table1

order by Project,Data;

 

drop table Table1

 

 

load 

View solution in original post

JordyWegman
Partner - Master
Partner - Master

Hi,

It works now, see the script! The peek needed to be in the previous, not the other-way around.

Jordy

Climber

Work smarter, not harder

View solution in original post

10 Replies
JordyWegman
Partner - Master
Partner - Master

Hi Beck,

You can try the following:

Table:
Load
  Project,
  Data,
  IF(Isnull(Empl), previous(Empl),Empl) as Empl
  IF(Isnull(Amount),previous(Amount),Amount) as Amount
From [YourSource](qvd);

Jordy

Climber 

Work smarter, not harder
beck_bakytbek
Master
Master
Author

Hi Jordy,

thanks a lot for your responce and Feedback, i tried to implement your Suggestion, but i didnt achieve any results, i attached my qlik Sense - example

PrashantSangle

instead of previous () use peek ()

if(isnull(Amount),peek(Amount),Amount) as Amount

Regards,
Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
beck_bakytbek
Master
Master
Author

Hi PrashantSangle,

 

thanks a lot for your Feedback, but it does not work

PrashantSangle

what do you mean by not working. can share your screen shot of it.
Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
beck_bakytbek
Master
Master
Author

i mean: i used the peek()- function and it does not work, i attached my qlik sense example (see above).

thanks a lot

lironbaram
Partner - Master III
Partner - Master III

hi 

after you loaded the initial table 

let call the table : Table1

you can add to your script 

Table2:

noconcatenate load Project,

                                          Data,

                                         if(isnull(Empl),peek('Empl'),Empl) as Empl

                                         if(isnull(Amount),peek('Amount'),Amount) as Amount

resident Table1

order by Project,Data;

 

drop table Table1

 

 

load 

JordyWegman
Partner - Master
Partner - Master

Hi,

It works now, see the script! The peek needed to be in the previous, not the other-way around.

Jordy

Climber

Work smarter, not harder
beck_bakytbek
Master
Master
Author

Jordy thanks a lot for your time and help