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

Autofill column with one single field

Hi all:

I receive the same table every month. The format is the same, so they autoconcatenate. The problem I have is that some of the fields are empty and I'd like to fill them with the monthly value of every table.

After my load, I have this table:

  

  

FECHACS_AD_CO_RANGO_INFERIORCS_AD_CO_INDICADOR
31/01/20150,75CO
0,5CO
0CO
28/02/20150,75CO
0,5CO
0CO
31/03/20150,75CO
0,5CO
0

CO

And I'd like to get this:

FECHACS_AD_CO_RANGO_INFERIORCS_AD_CO_INDICADOR
31/01/20150,75CO
31/01/20150,5CO
31/01/20150CO
28/02/20150,75CO
28/02/20150,5CO
28/02/20150CO
31/03/20150,75CO
31/03/20150,5CO
31/03/20150

CO

How could I fill the empty cells of the FECHA column with their corresponding value?

Thanks a lot for your help!!

Regards,

Vincent

1 Solution

Accepted Solutions
tamilarasu
Champion
Champion

Hi Vincent,

You can fill empty cells by using file wizard. Use enable transformation step, there you can see fill option. Just click and enter the colum number in popup boc and select "is empty" by using cell condition button. download (1).png

View solution in original post

6 Replies
sunny_talwar

May be something like this?

If(Len(Trim(FECHA)) = 0, Previous('FECHA'), FECHA) as FECHA

Not applicable
Author

Not yet at all... it has just filled one of the two empty fields. 😞

Table.png

Thanks anyway for your help Sunny! If you have another idea, I'll be happy to ear it!

sunny_talwar

Can you try it with Peek() Instead of Previous may be

If(Len(Trim(FECHA)) = 0, Peek('FECHA'), FECHA) as FECHA

or this:

If(Len(Trim(FECHA)) = 0, Peek('FECHA1'), FECHA) as FECHA1

tamilarasu
Champion
Champion

Hi Vincent,

You can fill empty cells by using file wizard. Use enable transformation step, there you can see fill option. Just click and enter the colum number in popup boc and select "is empty" by using cell condition button. download (1).png

Not applicable
Author

I've just tried it Tamil and it works!! Thanks a lot for your help!!

tamilarasu
Champion
Champion

You are welcome Vincent.