<?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: Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988693#M468159</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1334"&gt;Ignore all selections except some specific fields using Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({1&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year = {$(=If(GetSelectedCount(Year) = 0,Chr(39) &amp;amp; '*' &amp;amp; Chr(39),Concat (Distinct Chr(39) &amp;amp; Year &amp;amp; Chr(39),',')))},&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month = {$(=If(GetSelectedCount(Month) = 0,Chr(39) &amp;amp; '*' &amp;amp; Chr(39),Concat (Distinct Chr(39) &amp;amp; Month &amp;amp; Chr(39),',')))}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Finance_Amount&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Sep 2015 08:25:26 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-09-21T08:25:26Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988692#M468158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi There&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to write a set analysis expression which does the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Finance_Amount)- and ignore any selections made except The Year and the Month selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have managed to do it using a few variables but I would like to see if there is a simpler way of doing it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988692#M468158</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2015-09-21T08:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988693#M468159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1334"&gt;Ignore all selections except some specific fields using Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum({1&amp;lt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Year = {$(=If(GetSelectedCount(Year) = 0,Chr(39) &amp;amp; '*' &amp;amp; Chr(39),Concat (Distinct Chr(39) &amp;amp; Year &amp;amp; Chr(39),',')))},&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month = {$(=If(GetSelectedCount(Month) = 0,Chr(39) &amp;amp; '*' &amp;amp; Chr(39),Concat (Distinct Chr(39) &amp;amp; Month &amp;amp; Chr(39),',')))}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Finance_Amount&lt;/SPAN&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:25:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988693#M468159</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-09-21T08:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988694#M468160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;Year=p(Year), Month=p(Month)&amp;gt;}Finance_Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988694#M468160</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-21T08:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988695#M468161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Try:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;Year = Max(Year),Month = Max(Month) Region =,Product=&amp;gt;}Finance_Amount)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988695#M468161</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-21T08:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988696#M468162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ex&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={"=$(Max(Year))"},Month={"=$(Max(Month))"}, Dim1=,Dim2,Dim3&amp;gt;}Finance_Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988696#M468162</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-21T08:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988697#M468163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Rido&lt;/P&gt;&lt;P&gt;may be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;[Year]={'2015'}, [Month]={'April'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Finance_Amount&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;choose your Month &amp;amp; Year&lt;/P&gt;&lt;P&gt;Or use Max(Year), Max(Month) for Current Month &amp;amp; Year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:29:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988697#M468163</guid>
      <dc:creator>rajkumarb</dc:creator>
      <dc:date>2015-09-21T08:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988698#M468164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is a syntax for this, and it is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({1&amp;lt;[Year]=$::[Year], [Month]=$::[Month]&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Finance_Amount)&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;The 1 says that the expression should take the values from the unfiltered set, so it disregards all selections.&lt;/P&gt;&lt;P&gt;The [Set]:: syntax says that the expression should take the values from the specified Set for that field. $ is the current selections Set. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;BR /&gt;SKG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988698#M468164</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-09-21T08:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988699#M468165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You, Much simpler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:46:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988699#M468165</guid>
      <dc:creator>rido1421</dc:creator>
      <dc:date>2015-09-21T08:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988700#M468166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will not work, because the p(Year) can be influenced by other selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say if a company has only sold a product in 2014, then selecting that product will reduce p(Year) to only 2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use the [Year]=$::[Year] syntax as it will only use the explicit selection for Year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 08:50:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988700#M468166</guid>
      <dc:creator>simenkg</dc:creator>
      <dc:date>2015-09-21T08:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988701#M468167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;A href="https://community.qlik.com/qlik-users/137372"&gt;bwisenoSimenKG&lt;/A&gt;‌, you have a valid point. I had an impression that :: is meant for Alternate State and $:: is used for default state, didn't notice it works for Current Selection as well. Thank you once again. I was trying to play with this&amp;nbsp; approach to check if by chance we are mixing it up, but not so far. It seems yours to be right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 09:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis/m-p/988701#M468167</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-09-21T09:24:00Z</dc:date>
    </item>
  </channel>
</rss>

