<?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 set analysis question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982962#M946247</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is that I need to create a new field in order for a chart to display a 0 instead of ignoring my selection.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;I have the following expression:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CompanyName={'A'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select CompanyName B, I would expected that qlikview would return 0 and not ignore my selection&lt;/P&gt;&lt;P&gt;Only if I use a new field CompanyName2 and select B, then Qlikview would return 0.&lt;/P&gt;&lt;P&gt;Do I always have to work that this or is there a simple way so qlikview can retrun 0 without creating a new field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached my app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Dec 2015 09:06:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-24T09:06:22Z</dc:date>
    <item>
      <title>set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982962#M946247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is that I need to create a new field in order for a chart to display a 0 instead of ignoring my selection.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;I have the following expression:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CompanyName={'A'}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select CompanyName B, I would expected that qlikview would return 0 and not ignore my selection&lt;/P&gt;&lt;P&gt;Only if I use a new field CompanyName2 and select B, then Qlikview would return 0.&lt;/P&gt;&lt;P&gt;Do I always have to work that this or is there a simple way so qlikview can retrun 0 without creating a new field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached my app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 09:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982962#M946247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-24T09:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: basic set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982963#M946248</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 like this&lt;/P&gt;&lt;P&gt;=if(CompanyName = 'A', Sum(Sales), 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uncheck Suppress Zero Values in Presentation Tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 09:21:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982963#M946248</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-12-24T09:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: basic set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982964#M946249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want the expression return always '0' when anything else (apart from 'A') is selected and value only when 'A'/nothing is selected, try with intersection operator('*') like :&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CompanyName&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/SPAN&gt;={'A'}&amp;gt;} Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 09:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982964#M946249</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-12-24T09:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: basic set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982965#M946250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expression as :&lt;/P&gt;&lt;P&gt;=if(CompanyName = 'A', Sum(Sales), 0)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 09:25:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982965#M946250</guid>
      <dc:creator />
      <dc:date>2015-12-24T09:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: basic set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982966#M946251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that was exactly what i was looking for. Better than creating new fields.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 09:28:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982966#M946251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-24T09:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: basic set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982967#M946252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you're missing something about Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, you replace the current CompanyName selection with a forced selection as detailed by the set modifier &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;lt;CompanyName={'A'}&amp;gt;&lt;/SPAN&gt;. This is only temporarily (for this object) and for this expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The behaviour you expect can be accomplished by enabling the checkbox "Show All Values" in Properties-&amp;gt;Dimensions and by disabling the checkbox Suppress Zero-Values in Properties-&amp;gt;Presentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But then, what is the use of displaying all dimension field values and showing only aggregation results for a single company as specified by the set specification?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 09:30:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982967#M946252</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-24T09:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: basic set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982968#M946253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only think I curious is why does qlikview underline the expression in red. It gives the impression that the expression is incorrect.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screenshot.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/109937_screenshot.jpg" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 09:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982968#M946253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-24T09:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: basic set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982969#M946254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weird. You will still not get any other dimension values because zeroes will be suppressed by default in your chart. And if you disable zeroe suppression, you'll get a NULL value in your dimension column.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 09:35:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982969#M946254</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-24T09:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: basic set analysis question</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982970#M946255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't worry; there are some set analysis constructs that are too smart even for the syntax checker. As the line above your expression states, the &lt;EM&gt;Expression is OK&lt;/EM&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 09:37:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-question/m-p/982970#M946255</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-12-24T09:37:05Z</dc:date>
    </item>
  </channel>
</rss>

