<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to identify and empty cell in script?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-identify-and-empty-null-cell-in-script/m-p/928804#M321289</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a isnull() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can try with&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IF( len(trim(result))=0,actualcost,actualcost+result) as finaldist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;another one&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;rangesum(actualcost, result) as finaldist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I suppose all your fields are in one table&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Aug 2015 19:00:30 GMT</pubDate>
    <dc:creator>maxgro</dc:creator>
    <dc:date>2015-08-14T19:00:30Z</dc:date>
    <item>
      <title>How to identify and empty/null cell in script??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-and-empty-null-cell-in-script/m-p/928803#M321288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well I have this problem I am doing a distribution of general cost based on the actual cost of products, that means I calculate a distribution percentage in every data entry, and then I multiply this percentage by the amount to distribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is simple, but my problem comes when I add up the actual cost of the products to the resulting on the already explained expression, my idea is that I must use an "if" function, to tell my script to not add up the result to the actual cost, when the result is in fact an empty cell, but I do not know how to say that, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF( result='blank',actualcost,actualcost+result) as finaldist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'blank' does not exists apparently, and that is my problem, the table looks like this:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;product&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;actualcost&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;generalcost&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;perecentage&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;result&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;finaldist&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.125&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;62.5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;562.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;200&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.25&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;50&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;250&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;C&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;400&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;D&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;100&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;500&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;0.125&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;62.5&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;162.5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK YOU!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 18:52:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-and-empty-null-cell-in-script/m-p/928803#M321288</guid>
      <dc:creator />
      <dc:date>2015-08-14T18:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify and empty cell in script??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-and-empty-null-cell-in-script/m-p/928804#M321289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a isnull() function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can try with&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IF( len(trim(result))=0,actualcost,actualcost+result) as finaldist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;another one&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;rangesum(actualcost, result) as finaldist&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I suppose all your fields are in one table&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 19:00:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-and-empty-null-cell-in-script/m-p/928804#M321289</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-08-14T19:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to identify and empty cell in script??</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-identify-and-empty-null-cell-in-script/m-p/928805#M321290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep, all my fields are inside one single table. And it actually worked, thank you &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; this other one also makes the trick:&lt;/P&gt;&lt;P&gt;If(isnull(PORCIONALL2),CTOAGGR2, PORCIONALL2+CTOAGGR2) as DISTFINALALLPROD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 19:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-identify-and-empty-null-cell-in-script/m-p/928805#M321290</guid>
      <dc:creator />
      <dc:date>2015-08-14T19:21:33Z</dc:date>
    </item>
  </channel>
</rss>

