<?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: Set analyse - blank values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analyse-blank-values/m-p/1290674#M403615</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;In general, I would create a flag as Sunny suggests. But of for some reason you prefer not to change the load script (or cannot), then you may be able to do this in the front end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If "empty" means an empty string ('') then use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; -1 * Sum ({&amp;lt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [ID account] = {"501386", "501387", "501388", "501389", "501390", "501391", "501392", "501396", "501398", "501399", "501400", "501401", "501588"}, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [Object] = {'whinr110'},&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &lt;STRONG&gt;[ID cost division] ={'701', '702', '703', ''} &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;} [Bill out of])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I suspect by "empty" you mean NULL. Then try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-1 * Sum ({&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;lt;[ID account] = {"501386", "501387", "501388", "501389", "501390", "501391", "501392", "501396", "501398", "501399", "501400", "501401", "501588"}, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [Object] = {'whinr110'}&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; * &lt;STRONG&gt;((1 - &amp;lt;[ID cost division]= {'*'}&amp;gt;) + &amp;lt;[ID cost division]={'701', '702', '703'})&amp;gt;)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;} [Bill out of])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The highlighted expression takes all possible value and deducts all he cost divisions that have content. It then adds the three explicit cost divisions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Mar 2017 09:48:37 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2017-03-28T09:48:37Z</dc:date>
    <item>
      <title>Set analyse - blank values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analyse-blank-values/m-p/1290672#M403613</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;I have problem with set analyse. My set analyse is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-1 * Sum ({&amp;lt; [ID account] = {"501386", "501387", "501388", "501389", "501390", "501391", "501392", "501396", "501398", "501399", "501400", "501401", "501588"}, [Object] = {'whinr110'},&lt;/P&gt;&lt;P&gt; [ID cost division] ={'701', '702', '703'} &amp;gt;}[Bill out of])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything works, but I have also some accounting records, where "&lt;SPAN style="font-size: 13.3333px;"&gt;ID cost division&lt;/SPAN&gt;" is empty and I need them in my choice.. How can I choose in Set analyse also records, where is &lt;SPAN style="font-size: 13.3333px;"&gt;ID cost division unwritten.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 06:51:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analyse-blank-values/m-p/1290672#M403613</guid>
      <dc:creator>jozisvk11</dc:creator>
      <dc:date>2017-03-28T06:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: Set analyse - blank values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analyse-blank-values/m-p/1290673#M403614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be create a flag in the script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[ID cost division]&lt;/SPAN&gt;,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt;&amp;nbsp; If(Len(Trim(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[ID cost division]&lt;/SPAN&gt;)) = 0 or Match(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[ID cost division]&lt;/SPAN&gt;, 701, 702, 703), 1, 0) as Flag&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;-1 * Sum ({&amp;lt; [ID account] = {"501386", "501387", "501388", "501389", "501390", "501391", "501392", "501396", "501398", "501399", "501400", "501401", "501588"}, [Object] = {'whinr110'},&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Flag = {1}&lt;/SPAN&gt;&amp;gt;}[Bill out of])&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;You can bring all the conditions into the script if you want...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 09:00:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analyse-blank-values/m-p/1290673#M403614</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-28T09:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set analyse - blank values</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analyse-blank-values/m-p/1290674#M403615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;In general, I would create a flag as Sunny suggests. But of for some reason you prefer not to change the load script (or cannot), then you may be able to do this in the front end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If "empty" means an empty string ('') then use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; -1 * Sum ({&amp;lt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [ID account] = {"501386", "501387", "501388", "501389", "501390", "501391", "501392", "501396", "501398", "501399", "501400", "501401", "501588"}, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [Object] = {'whinr110'},&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &lt;STRONG&gt;[ID cost division] ={'701', '702', '703', ''} &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;gt;} [Bill out of])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I suspect by "empty" you mean NULL. Then try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;-1 * Sum ({&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; &amp;lt;[ID account] = {"501386", "501387", "501388", "501389", "501390", "501391", "501392", "501396", "501398", "501399", "501400", "501401", "501588"}, &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; [Object] = {'whinr110'}&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp; * &lt;STRONG&gt;((1 - &amp;lt;[ID cost division]= {'*'}&amp;gt;) + &amp;lt;[ID cost division]={'701', '702', '703'})&amp;gt;)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;} [Bill out of])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The highlighted expression takes all possible value and deducts all he cost divisions that have content. It then adds the three explicit cost divisions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 09:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analyse-blank-values/m-p/1290674#M403615</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2017-03-28T09:48:37Z</dc:date>
    </item>
  </channel>
</rss>

