<?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: Syntax for Zero-Length strings in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Syntax-for-Zero-Length-strings/m-p/375076#M139693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of set analysis , try the if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If(Fieldname &amp;lt;&amp;gt; 'NA', Amount)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if still doesn't work , try to attach a sample file , so that we can take a closer look into the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Jun 2012 07:16:38 GMT</pubDate>
    <dc:creator>deepakk</dc:creator>
    <dc:date>2012-06-30T07:16:38Z</dc:date>
    <item>
      <title>Syntax for Zero-Length strings</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-Zero-Length-strings/m-p/375072#M139689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our CRM database exports a "zero-length string" (ZLS) for fields which are empty, but not NULL. My question is - how do I exclude this in a trigger? I tried using &amp;lt;FieldName = {"(Bob|Mary|Ted)"}-{""}&amp;gt;, but that didn't work. Anyone know of a solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried setting the trigger to, on sheet activation, clear all selections, then clear this field specifically, then apply just the selections I want, but the ZLS entries still show up. Then, I created a bookmark of just the selections I want, went to the sheet triggers, selected "Apply Bookmark" and the bookmark name, but again the ZLS entries show up. However, if I just go on the page, and select the bookmark, the ZLS entries don't show up. Is there a difference between the way bookmarks operate on the page, and in triggers?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally, am I correct in assuming that trigger precedence is top down (I kinda thought that was implied from the "Promote"/"Demote" buttons, but I'm not sure).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 20:02:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-Zero-Length-strings/m-p/375072#M139689</guid>
      <dc:creator />
      <dc:date>2012-06-29T20:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Zero-Length strings</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-Zero-Length-strings/m-p/375073#M139690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this method. While loading the data give and identification to ZLS like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(len(trim(FieldName)) =0,'NA',FieldName) as FieldName,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in expression use this set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt; &amp;lt;FieldName = {"(Bob|Mary|Ted)"}-{"NA"}&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;Deepak&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 20:32:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-Zero-Length-strings/m-p/375073#M139690</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2012-06-29T20:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Zero-Length strings</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-Zero-Length-strings/m-p/375074#M139691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do not need the rows having ZLS value, you may exclude those rows while loading your CRM data using script like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * where Len(Trim(ZLSField)) &amp;gt; 0;&lt;/P&gt;&lt;P&gt;LOAD * From (your source);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to handle and process the rows having ZLS value, you may replace the ZLS value with a non-ZLS value during the load using a script like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,If(Len(Trim(ZLSField)) &amp;gt; 0, ZLSField,'ZLS') as NewZLSField;&lt;/P&gt;&lt;P&gt;LOAD * From (your source);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 20:34:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-Zero-Length-strings/m-p/375074#M139691</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2012-06-29T20:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Zero-Length strings</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-Zero-Length-strings/m-p/375075#M139692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to both of you; neither worked though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, krishna, I noted that you had your LOAD statements as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD *,If(Len(Trim(ZLSField)) &amp;gt; 0, ZLSField,'ZLS') as NewZLSField&lt;/EM&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas in my script I have the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;LOAD&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Opp_StartDate) As StartMonth,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(Opp_StartDate) As StartYear,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Len(Trim(ZLSField)) &amp;gt; 0, ZLSField,'ZLS') as NewZLSField,&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which works to the extent that the entries now do come in marked "NA". However, when I then went into my trigger and added the condition -{"NA"}, these entries still showed up the page. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 21:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-Zero-Length-strings/m-p/375075#M139692</guid>
      <dc:creator />
      <dc:date>2012-06-29T21:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax for Zero-Length strings</title>
      <link>https://community.qlik.com/t5/QlikView/Syntax-for-Zero-Length-strings/m-p/375076#M139693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of set analysis , try the if statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(If(Fieldname &amp;lt;&amp;gt; 'NA', Amount)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if still doesn't work , try to attach a sample file , so that we can take a closer look into the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jun 2012 07:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Syntax-for-Zero-Length-strings/m-p/375076#M139693</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2012-06-30T07:16:38Z</dc:date>
    </item>
  </channel>
</rss>

