Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

fill the value whre data is null

Dear communty,

Mysenario will be

i have

item   amount

item1   10000

item2     0

item3     0

i want to be fill 10000 where amount is 00

kindly guide me

8 Replies
Not applicable
Author

kindly use the below expression for dis[playing amount

 

if(amount='00' or amount ='Null' ,10000)

Thanks,

D J

Not applicable
Author

Thanks for Reply

but i am not expecting this way it should show the value auttomatically not manuvally

item2 and item 3 shold show item 1 value by dynamically not manuvally

in the future value may be change

Gysbert_Wassenaar

Have a look at this document: Generating Missing Data In QlikView


talk is cheap, supply exceeds demand
marcus_malinow
Partner - Specialist III
Partner - Specialist III

You could try using a peek.

For example:

LOAD

item,

if(isnull(Amount) or Amount = 0,

     peek('Amount', -1),

     Amount) as Amount

FROM

.....

ORDER BY Amount desc;

sathishkumar_go
Partner - Specialist
Partner - Specialist

Hi, Please find the attached file. I hope the attached file will solve your problem. Regards Sathish

Not applicable
Author

Hi,

lease use the below function to load the data;

LOAD item,

If(Isnull(amount) or amount=0, peek('Newamount'),amount) as Newamount

    

FROM

Sample.xlsx

(ooxml, embedded labels, table is Sheet1);

Thanks,

D J

dmohanty
Partner - Specialist
Partner - Specialist

This will help you:

If(Isnull(amount) or amount= '0', peek(NewAmount),amount) as NewAmount

Not applicable
Author

Hi

see below result

item amount Replace with previous value
11008 11008
item11000010000
item2010000
item3100100
item40100
i400
i5200200
i6700700
i788
i808

use this cond in ur expression

if(amount=0,Above(amount,1),amount)

then u get this result

above table

1st exp is

amount

2nd exp is 

if(amount=0,Above(amount,1),amount)