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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
dseelam
Creator II
Creator II

Field value

Hello All,

strange requirement

I have this a sight table in a DB where I have 2 dim and 2 expressions and 2 other dimensions as expressions

customeraccountold LOHold Lnew LOHnew L
COSTCO32450.560.110.560.11
AMAZON45460.250.260.250.26
WALMART15250.110.45

New LOH & new L Walmart values are blank so there I want to reflect old LOH & old L values

is it even possible ?

Thanks,

Dinesh

5 Replies
Digvijay_Singh

You may try something like -

If(isnull(Exp(newLOH)),Column(1),Exp(newLOH)

Here Column(1) denotes to old LOH exp and Column(2) denotes to old L exp.

instead of isnull you can check len() to 0 as well.

vishsaggi
Champion III
Champion III

Extending to what Digvijay mentioned use Len() function like

Dims: Customer, Account

Expr1: OldLOH

Expr2: OldL

Expr3: = IF(Len(NewLoh)=0, oldLOH, NewLoh)

Expr4: = IF(Len(NewL)=0, oldL, NewL)

MarcoWedel

Alt([new LOH], [old LOH])

hope this helps

regards

Marco

Not applicable

if(isNull([new LOH]), [old LOH], [new LOH])