<?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 variable help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/variable-help/m-p/412970#M1159526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the foloowing variable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTargetSum_DistributionChart = &lt;/P&gt;&lt;P&gt;'avg({1&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [it_target_type]={"Distribution"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_objective_name={'&amp;amp;CHR(36)&amp;amp;'(v_it_objective_name_selections)},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; territory_region={'&amp;amp;CHR(36)&amp;amp;'(v_territory_region_selections)},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOIN_territory={'&amp;amp;CHR(36)&amp;amp;'(v_JOIN_territory_selections)}&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [it_target_value]&lt;/P&gt;&lt;P&gt;)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add in some logic but un sure on how to do it. &lt;/P&gt;&lt;P&gt;basically if the result of the above is NULL then i want to show it as 0. &lt;/P&gt;&lt;P&gt;Can anyone help on how to incorporate this into the above variable please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Dec 2012 11:06:48 GMT</pubDate>
    <dc:creator>hopkinsc</dc:creator>
    <dc:date>2012-12-06T11:06:48Z</dc:date>
    <item>
      <title>variable help</title>
      <link>https://community.qlik.com/t5/QlikView/variable-help/m-p/412970#M1159526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the foloowing variable..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTargetSum_DistributionChart = &lt;/P&gt;&lt;P&gt;'avg({1&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [it_target_type]={"Distribution"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_objective_name={'&amp;amp;CHR(36)&amp;amp;'(v_it_objective_name_selections)},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; territory_region={'&amp;amp;CHR(36)&amp;amp;'(v_territory_region_selections)},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOIN_territory={'&amp;amp;CHR(36)&amp;amp;'(v_JOIN_territory_selections)}&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [it_target_value]&lt;/P&gt;&lt;P&gt;)';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to add in some logic but un sure on how to do it. &lt;/P&gt;&lt;P&gt;basically if the result of the above is NULL then i want to show it as 0. &lt;/P&gt;&lt;P&gt;Can anyone help on how to incorporate this into the above variable please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 11:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-help/m-p/412970#M1159526</guid>
      <dc:creator>hopkinsc</dc:creator>
      <dc:date>2012-12-06T11:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: variable help</title>
      <link>https://community.qlik.com/t5/QlikView/variable-help/m-p/412971#M1159527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the alt function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vTargetSum_DistributionChart = &lt;/P&gt;&lt;P&gt;'alt(avg({1&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [it_target_type]={"Distribution"},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_objective_name={'&amp;amp;CHR(36)&amp;amp;'(v_it_objective_name_selections)},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; territory_region={'&amp;amp;CHR(36)&amp;amp;'(v_territory_region_selections)},&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOIN_territory={'&amp;amp;CHR(36)&amp;amp;'(v_JOIN_territory_selections)}&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [it_target_value]&lt;/P&gt;&lt;P&gt;),0)';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Dec 2012 11:22:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/variable-help/m-p/412971#M1159527</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2012-12-06T11:22:04Z</dc:date>
    </item>
  </channel>
</rss>

