<?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 return null instead of 0 for false set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-return-null-instead-of-0-for-false-set-analysis/m-p/1257655#M25541</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Huzzah! I was able to do this by adding an if statement within the set analysis. Where it was equal to 0 (and True for set analysis) I gave it a value of .001. It therefore was not excluded when I unchecked 'Show Zero Values'. I finally changed the number formatting to Number and whole numbers so the .001 was not a distraction or point of confusion - it only appears as 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;[%Date] = {'&amp;gt;$(=(today()-(7*($(vTrailingWeeks)-1))-(7-weekday(today()))))'}&amp;gt;} &lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;aggr(sum([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NewReports&lt;/SPAN&gt;]),WeekEnding) = 0, .001,[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NewReports&lt;/SPAN&gt;])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="null2.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/154365_null2.png" style="height: 283px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2017 14:52:36 GMT</pubDate>
    <dc:creator>liam_hanninen</dc:creator>
    <dc:date>2017-02-24T14:52:36Z</dc:date>
    <item>
      <title>How to return null instead of 0 for false set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-return-null-instead-of-0-for-false-set-analysis/m-p/1257654#M25540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a set analysis that is restricting values based on a variable:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({&amp;lt;[%Date] = {'&amp;gt;$(=(today()-(7*($(vTrailingWeeks)-1))-(7-weekday(today()))))'}&amp;gt;} [NewReports])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where vTrailingWeeks is just a number 1-52.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to display trailing weeks. The above expression works! But when there are weeks with values of 0 they look just like the rest of the weeks that I intentionally excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the images below: The top chart shows all of the values. The part I outlined on the left are the ones deliberately excluded via the set analysis above. On the right there are 8 weeks allowed, note the four with zero value. My intention is to display all 8 weeks (see on the right) but leave out all of the rest (to the left).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="154306" alt="null.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/154306_null.png" style="height: 302px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;But as you might expect if I uncheck 'Show Zero Values' in Data Handling in Add-ons all but the four with values disappear. And so I'm wondering if I can assign 'null' to all of the values on the left (top chart) so that I don't have to uncheck 'Show Zero Values' and instead uncheck 'Show Null Values'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2017 23:19:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-return-null-instead-of-0-for-false-set-analysis/m-p/1257654#M25540</guid>
      <dc:creator>liam_hanninen</dc:creator>
      <dc:date>2017-02-23T23:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to return null instead of 0 for false set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-return-null-instead-of-0-for-false-set-analysis/m-p/1257655#M25541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Huzzah! I was able to do this by adding an if statement within the set analysis. Where it was equal to 0 (and True for set analysis) I gave it a value of .001. It therefore was not excluded when I unchecked 'Show Zero Values'. I finally changed the number formatting to Number and whole numbers so the .001 was not a distraction or point of confusion - it only appears as 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sum({&amp;lt;[%Date] = {'&amp;gt;$(=(today()-(7*($(vTrailingWeeks)-1))-(7-weekday(today()))))'}&amp;gt;} &lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;aggr(sum([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NewReports&lt;/SPAN&gt;]),WeekEnding) = 0, .001,[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;NewReports&lt;/SPAN&gt;])))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="null2.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/154365_null2.png" style="height: 283px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 14:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-return-null-instead-of-0-for-false-set-analysis/m-p/1257655#M25541</guid>
      <dc:creator>liam_hanninen</dc:creator>
      <dc:date>2017-02-24T14:52:36Z</dc:date>
    </item>
  </channel>
</rss>

