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: 
suvechha_b
Creator III
Creator III

How to write the expression

How to write the following in qlikview expression:

if NettStock is NULL then Null

Else

     if(NettStock< sum([OutStanding Qty]),NettStock-sum([OutStanding Qty]),NettStock)

1 Solution

Accepted Solutions
PrashantSangle

Capture.PNG

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂

View solution in original post

6 Replies
SreeniJD
Specialist
Specialist

Hi Suveccha

You can ALT function for this..

PrashantSangle

Hi,

if(isnull(NetStock) or len(trim(NetStock))=0,'Null',YourExpression)

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
PrashantSangle

Capture.PNG

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
avinashelite

try like this:

if (len(trim(NettStock))=0 ,null(),

    if(NettStock< sum([OutStanding Qty]),NettStock-sum([OutStanding Qty]),NettStock))

sasiparupudi1
Master III
Master III

=if(len( trim(NettStock))=0,'Null',if(NettStock< sum([OutStanding Qty]),NettStock-sum([OutStanding Qty]),NettStock))

jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

=if(Len(Trim(NettStock)) =  0, 'Null',

     if(NettStock< sum([OutStanding Qty]),NettStock-sum([OutStanding Qty]),NettStock))

Hope this helps you.

Regards,

Jagan.