<?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: Consider a particular State with AGGR function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Consider-a-particular-State-with-AGGR-function/m-p/1288946#M403304</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try 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;(Sum({StateA} SalesValue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&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;Only({StateA &amp;lt;YearMonth={$(vYearMonthList)}, GlobalProduct=, PPG=, InternalProdct=, BrandEquity=, Manufacturer=, SubBrand=, Variant=, %IntProd=&amp;gt;}&lt;/SPAN&gt; Aggr(NODISTINCT Sum({StateA &amp;lt;YearMonth={$(vYearMonthList)}, GlobalProduct=, PPG=, InternalProdct=, BrandEquity=, Manufacturer=, SubBrand=, Variant=, %IntProd=&amp;gt;} SalesValue),&amp;nbsp; ProductSubCategory,Customer)&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;) * 100&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2017 15:51:18 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-03-01T15:51:18Z</dc:date>
    <item>
      <title>Consider a particular State with AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Consider-a-particular-State-with-AGGR-function/m-p/1288945#M403303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Team, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to do Comparative Analysis in Qlikview11. I have defined 2 States as StateA and StateB and also have the default State.&lt;/P&gt;&lt;P&gt;I have an Expression which reads something like&amp;nbsp; &lt;/P&gt;&lt;P&gt;(sum({StateA} SalesValue) &lt;/P&gt;&lt;P&gt;/ &lt;/P&gt;&lt;P&gt;&amp;nbsp; aggr(nodistinct sum({StateA &amp;lt;YearMonth={$(vYearMonthList)}, GlobalProduct=,PPG=,InternalProdct=,BrandEquity=,Manufacturer=,SubBrand=,Variant=,%IntProd=&amp;gt;} SalesValue),&amp;nbsp; ProductSubCategory,Customer) )*100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Question is "How can I write to ignore all Selections present for default State. Presently, Imagine I Select Customer1 from default State ListBox and Customer2 from StateA then I get no Results. Only if I manually clear Customer1 from default then I see data coming for the above expression. Can you please tell me EXACT syntax so that only StateA would be considered in my calculations. I guess if it was not for AGGR, it would have worked correctly. Kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Kuldeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 14:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Consider-a-particular-State-with-AGGR-function/m-p/1288945#M403303</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-01T14:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Consider a particular State with AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Consider-a-particular-State-with-AGGR-function/m-p/1288946#M403304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try 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;(Sum({StateA} SalesValue)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&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;Only({StateA &amp;lt;YearMonth={$(vYearMonthList)}, GlobalProduct=, PPG=, InternalProdct=, BrandEquity=, Manufacturer=, SubBrand=, Variant=, %IntProd=&amp;gt;}&lt;/SPAN&gt; Aggr(NODISTINCT Sum({StateA &amp;lt;YearMonth={$(vYearMonthList)}, GlobalProduct=, PPG=, InternalProdct=, BrandEquity=, Manufacturer=, SubBrand=, Variant=, %IntProd=&amp;gt;} SalesValue),&amp;nbsp; ProductSubCategory,Customer)&lt;SPAN style="color: #ff0000;"&gt;)&lt;/SPAN&gt;) * 100&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2017 15:51:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Consider-a-particular-State-with-AGGR-function/m-p/1288946#M403304</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-01T15:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Consider a particular State with AGGR function</title>
      <link>https://community.qlik.com/t5/QlikView/Consider-a-particular-State-with-AGGR-function/m-p/1288947#M403305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for the help. I was able to get Desired results since now it does not consider other Selections and looks only for StateA. I have shared the output to my User. Will write back if I face any challenge on this question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Kuldeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Mar 2017 04:17:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Consider-a-particular-State-with-AGGR-function/m-p/1288947#M403305</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-02T04:17:06Z</dc:date>
    </item>
  </channel>
</rss>

