Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
raadwiptec
Creator II
Creator II

straight table

Hi All,

my expression values for a column is 0.00000 and some are null.

I need a condition in the expression where if the column is null or 0.0000 then populate the value from another column

ex

price ¦ net

0.00000 ¦ 1.24

0.00000 ¦ 1.25

null ¦ 1.26

my expected output should be..so if the price value is null or 0.0000 then it should take value from the net column

price ¦ net

1.24 ¦ 1.24

1.25 ¦ 1.25

1.26¦ 1.26

2 Replies
sunny_talwar

May be this:

If(price = 0 or Len(Trim(price)) = 0, net, price)

MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_191479_Pic1.JPG

SET NullInterpret='null';

table1:

LOAD If(price,price,net) as price,

    net

INLINE [

    price, net

    0.00000, 1.24

    0.00000, 1.25

    null, 1.26

    0.00001, 1.27

    10, 1.28

];

hope this helps

regards

Marco