Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Fill in the blank data columns

Can someone give me some help working through this issue. I need to fill blank columns with data from previous row. I tried several approach but no luck. Any insight is appreciated.

.

Original Table:

Original Data.JPG

Desired Table

Desired Data.JPG

5 Replies
manojkulkarni
Partner - Specialist II
Partner - Specialist II

This you can do while loading data. With Load Wizard , Select Enable Transformation & then use Fill option to do this operation.

tresesco
MVP
MVP

try like:

Load
      If(Len(trim(Dim1))>0, Dim1, Peek(Dim1)) as Dim1,
      Dim2,

      Amt;

Load * Inline [
Dim1, Dim2, Amt
AA, bbb, 100
  , ccc, 200
  , ddd, 300
BB, xxx, 400
  , yyy, 500
  , zzz, 600  ]

NareshGuntur
Partner - Specialist
Partner - Specialist

This might help you

Peek till not null

Cheers,

Naresh

Anonymous
Not applicable
Author

Thanks for the reply. This works Great

tresesco
MVP
MVP

Try to mark the 'Correct Answer' the one reply which is so. That will help many(including me) in many ways.