<?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 Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression/m-p/334368#M123295</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;I don't know if I missing something here, but in general if you want your sum expression to respect which DISTRICT_ID you actually have selected, you should&amp;nbsp; not have a set expression with DISTRICT_ID= in it, because that makes that expression disregard any selections in DISTRICT_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/GG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2012 11:14:17 GMT</pubDate>
    <dc:creator>gandalfgray</dc:creator>
    <dc:date>2012-04-03T11:14:17Z</dc:date>
    <item>
      <title>Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression/m-p/334367#M123294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; i have written this set expression for calculating volume of a product.&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;%CPID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;REGION_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DISTRICT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;TERRITORY&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&amp;gt;} (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Volume&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;where %CPID is the product ID.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I have Dimension as Geo_ID which is a cyclic group with Nation, REGION_ID, DISTRICT_ID and TERRITORY as fields. Now even if i am selecting any particular geography level say a particular district or a territory then the selected is highlighted but other district or territory are also listed with their values. But when i am going one level down with a particular district selected then all the territories in the nation are coming. I want only those territories to appear which are there in the selected district. How can i change my expression to do that ??&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 10:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression/m-p/334367#M123294</guid>
      <dc:creator />
      <dc:date>2012-04-03T10:53:37Z</dc:date>
    </item>
    <item>
      <title>Set Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression/m-p/334368#M123295</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;I don't know if I missing something here, but in general if you want your sum expression to respect which DISTRICT_ID you actually have selected, you should&amp;nbsp; not have a set expression with DISTRICT_ID= in it, because that makes that expression disregard any selections in DISTRICT_ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/GG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2012 11:14:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression/m-p/334368#M123295</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2012-04-03T11:14:17Z</dc:date>
    </item>
  </channel>
</rss>

