<?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 Query in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294837#M109422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have VALUELIST function used in the dimesnion to calculate the dimension names dynimically in the chart.. In the expression tab the same VALUELIST is used and to that different conditions are given to pick the appropriate calculation for the different dimension values declared in the Dimensions tab.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am testing the expression u have given in the text object.. It is not returning any value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz let me know if u need any clarification..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Feb 2012 12:20:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-02-17T12:20:08Z</dc:date>
    <item>
      <title>set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294830#M109415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have an expression written in if condition would like to change it to set analysis..Here are those expressions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If condition :&amp;nbsp; sum(Flag_ID*if(Year =&amp;nbsp; {'$(vMaxYear)'} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set analysis : sum(Flag*_ID* sum({&amp;lt; Year= {'$(VMaxYear)}&amp;gt;} Sales ) )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis is not working.. can some one tell me what is going wrong in this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advnace....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 10:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294830#M109415</guid>
      <dc:creator />
      <dc:date>2012-02-17T10:27:55Z</dc:date>
    </item>
    <item>
      <title>set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294831#M109416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; just a quick look you seem to miss on ' in the set analysis and the variable is written diffrently in the set analysis&lt;/P&gt;&lt;P&gt;and you need the set analysis in both sums&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;may be try &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(({&amp;lt; Year= {'$(vMaxYear)'}&amp;gt;} Flag*_ID* sum({&amp;lt; Year= {'$(vMaxYear)'}&amp;gt;} Sales ) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 10:43:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294831#M109416</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2012-02-17T10:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294832#M109417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Liron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let&amp;nbsp; me explain u more clearly. I have a variable named vTest which holds the name of a flag field(Flag_ID).Flag_ID has 0,1 values..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my if condition : sum([ $(=vTest)] * if(Year = vMaxyear ,Sales))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the above expressiojn to be changes to set analysis completely..&lt;/P&gt;&lt;P&gt;The expression u have provided is&amp;nbsp; not working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if u have any more suggestions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 11:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294832#M109417</guid>
      <dc:creator />
      <dc:date>2012-02-17T11:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294833#M109418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Do any one have any suggestions???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 11:56:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294833#M109418</guid>
      <dc:creator />
      <dc:date>2012-02-17T11:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294834#M109419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try using this expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({&amp;lt; Year= {$(=VMaxYear)}&amp;gt;} Sales )* Flag_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 11:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294834#M109419</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-17T11:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294835#M109420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for reply..&lt;/P&gt;&lt;P&gt;But that is not working &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:04:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294835#M109420</guid>
      <dc:creator />
      <dc:date>2012-02-17T12:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294836#M109421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; What dimensions you have in that chart?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Your expression Needs Aggr function I think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; May be like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt; Year= {$(=VMaxYear)}&amp;gt;} Aggr(Flag_ID *Sum(Sales),UniqueFieldName))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294836#M109421</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-17T12:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294837#M109422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have VALUELIST function used in the dimesnion to calculate the dimension names dynimically in the chart.. In the expression tab the same VALUELIST is used and to that different conditions are given to pick the appropriate calculation for the different dimension values declared in the Dimensions tab.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am testing the expression u have given in the text object.. It is not returning any value..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz let me know if u need any clarification..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:20:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294837#M109422</guid>
      <dc:creator />
      <dc:date>2012-02-17T12:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294838#M109423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Flag_ID is a variable or field?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If Field what is the use of that? because you stated that it has 0,1 values only then if you multiply with 0 then it will get zero for some results?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If Flag_ID is field then try with this expression&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum({&amp;lt; Year= {$(=VMaxYear)},Flag_ID={1}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:26:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294838#M109423</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-17T12:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294839#M109424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a variable vTest which holds the name of the filed called Flag_ID.. the expression u have posted seems to be good but I have tested the same in text object it does not return any value...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294839#M109424</guid>
      <dc:creator />
      <dc:date>2012-02-17T12:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294840#M109425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Check the expression in the variable for vMaxYear.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Sum({&amp;lt; Year= {$(vMaxYear)},Flag_ID={1}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if its perfect this should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:44:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294840#M109425</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-17T12:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294841#M109426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fine thanks for the reply.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u plz tell me whether the below two expressions would give the same result ot not..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.sum(total &amp;lt;[Class]&amp;gt; if year= vmaxyear,Sales)&lt;/P&gt;&lt;P&gt;2.sum({&amp;lt; Class=,Year = {'$(VMaxYear)'} &amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Vmaxyear is a variable which calculates the Max year i.e Max(Total Date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 12:55:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294841#M109426</guid>
      <dc:creator />
      <dc:date>2012-02-17T12:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294842#M109427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2nd one will work but you have not include Flag_ID there?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Then VMaxYear Variable expression should Max(Year) only know?but you used Date field there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 13:10:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294842#M109427</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-17T13:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294843#M109428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;plz forget the expression that I have posted previously.. Both are different.. I just wanted to check with you teh way I have implemented the if COndition and the set analysis now is correct or not...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In IF condition I have given total (Class) , but in set analysis have mentioned the same in Class = , Would both of&amp;nbsp; this expressions will give the same result???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 13:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294843#M109428</guid>
      <dc:creator />
      <dc:date>2012-02-17T13:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294844#M109429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No because 2nd one excludes the selection in the field class but 1st one includes the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make correction:sum({&amp;lt;Year = {'$(VMaxYear)'} &amp;gt;} Total &amp;lt;Class&amp;gt; Sales) this and the first one are same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 13:35:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294844#M109429</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-17T13:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294845#M109430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi can u plz tell me how do I include the selection in set analysis.. Could u edit the expression written in set analysis and let me know it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 13:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294845#M109430</guid>
      <dc:creator />
      <dc:date>2012-02-17T13:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294846#M109431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanka alot for ur time..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 13:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294846#M109431</guid>
      <dc:creator />
      <dc:date>2012-02-17T13:47:32Z</dc:date>
    </item>
    <item>
      <title>set analysis Query</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294847#M109432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; But still not arrived the solution of your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Celambarasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Feb 2012 13:49:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-Query/m-p/294847#M109432</guid>
      <dc:creator>CELAMBARASAN</dc:creator>
      <dc:date>2012-02-17T13:49:50Z</dc:date>
    </item>
  </channel>
</rss>

