Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
suvechha_b
Creator III
Creator III

need help to write the expression

How can I plot this in qlikview expression:

Potential Sale Value = Outstanding Order if the net stock > Outstanding Order else Potential Sale Value = net stock if net stock  < Outstanding Order

if Netstock is Null put null else

Potential Sale Value = Outstanding Order if the net stock > Outstanding Order else Potential Sale Value = net stock if net stock  < Outstanding Order

1 Solution

Accepted Solutions
Not applicable

Hi,

the format of if condition in qlikview is

IF(condition block, true block, else block),

try to use this

if(isnull(net stock)=-1,null(),if(net stock > Outstanding Order,Outstanding Order,net stock))

with best regards

View solution in original post

5 Replies
swuehl
MVP
MVP

maybe something like

=RangeMin( Sum([Outstanding Order]), Sum([Net Stock]) )

raghvendrasingh
Creator II
Creator II

Hi,

As per my understanding:-

Please try this one

if([net stock]>[Outstanding Order],[Outstanding Order],[net stock])

if you can give me pseudo code then we can help much better.Because from your requirement its not too clear to understand.

Thanks,

Raghvendra

Not applicable

Hi,

the format of if condition in qlikview is

IF(condition block, true block, else block),

try to use this

if(isnull(net stock)=-1,null(),if(net stock > Outstanding Order,Outstanding Order,net stock))

with best regards

maxgro
MVP
MVP

if(sum(Netstock)=0, null(), rangemin(sum(Netstock) , sum([Outstanding Order]) ) )

MarcoWedel

please post sample data and expected result.

regards

Marco