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 column with above data

Hi,

I have a raw data like this:

RegionalArea

A

AA
AB
AC
BBA
BB

I want to fill blank regional column with the value above.

So the record will be like this:

RegionalArea

A

AA
AAB
AAC
BBA
BBB

Is it possible to make it ?

Thanks in advance.

1 Solution

Accepted Solutions
avinashelite

Try like this

IF (len(trim(Regional)) = 0, peek('Regional'), Regional) AS Regional,

View solution in original post

5 Replies
sumit_ranjan_pa
Former Employee
Former Employee

Hi Chou,

This is possible but solutions might depend on the data.

Can you please provide more details or your load query and sample data for this?

Is there any condition you have which is making the load on the first column possible or you want it to be random filled?

Thanks and regards,

Sumit

stonecold111
Creator III
Creator III

if(regional=null(), above(regional))

use this in script

avinashelite

Try like this

IF (len(trim(Regional)) = 0, peek('Regional'), Regional) AS Regional,

Anonymous
Not applicable
Author

Hi Avinash,

Thank you very much, it solved my problem perfectly.

avinashelite

Glad to help you