<?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: GetFieldSelections in Setanalysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516039#M192669</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check out 'GetFieldSelections + SetAnalisys' in Qlik Community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Sep 2015 09:30:32 GMT</pubDate>
    <dc:creator>ilanbaruch</dc:creator>
    <dc:date>2015-09-08T09:30:32Z</dc:date>
    <item>
      <title>GetFieldSelections in Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516029#M192659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Community Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I get the below expression fully in set analysis without using if condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(GetFieldSelections(Product,';')='AA;BB' or GetFieldSelections(SubProd,';')='AAA;BBB',SUM({$&amp;lt;ProdType-={'SmartPhone'}&amp;gt;}Amount),&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(GetFieldSelections(Product,';')='CC;DD' or GetFieldSelections(SubProd,';')='CCC;DDD',SUM({$&amp;lt;ProdType-={'Mobile'}&amp;gt;}Amount),&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;ProdType-={'SmartPhone','Mobile'}&amp;gt;}Amount)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 04:26:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516029#M192659</guid>
      <dc:creator />
      <dc:date>2013-08-22T04:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516030#M192660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't think you can fit this condition in Set Analysis, or at least not without revealing more associations between Product, SubProd and ProdType. If I understand your expression, you are excluding different ProdTypes based on the field selections in Product and SubProd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd try and build associations in the data that could drive the same behavior. It looks like some of those associations might be missing and you are trying to compensate by using IF and Set Analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having said that, this IF statement is not too bad, because it's outside of the SUM, and therefore it's only performed once per chart line.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 04:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516030#M192660</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2013-08-22T04:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516031#M192661</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 think if&amp;nbsp; condition not bad for your case.But you can able to store the excluding ProdTypes values&amp;nbsp; in variable based on your condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex:&amp;nbsp; &lt;STRONG&gt;vExclude&lt;/STRONG&gt;="Your Condition";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({$&amp;lt;ProdType-={$(&lt;STRONG&gt;vExclude&lt;/STRONG&gt;)}&amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 05:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516031#M192661</guid>
      <dc:creator>kumarnatarajan</dc:creator>
      <dc:date>2013-08-22T05:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516032#M192662</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 converted the expression into if condition fully. Its working fine in expression window. But if I substitute variable then I am always getting last condition true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$(Variable)&amp;nbsp;&amp;nbsp; if I write it in expression window&amp;nbsp; of chart its giving always last part of expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable=&lt;/P&gt;&lt;P&gt;sum(IF(GetFieldSelections(Product,';')='AA;BB' or GetFieldSelections(SubProd,';')='AAA;BBB' and ProdType&amp;lt;&amp;gt;'SmartPhone') or &lt;/P&gt;&lt;P&gt;(GetFieldSelections(Product,';')='CC;DD' or GetFieldSelections(SubProd,';')='CCC;DDD' and ProdType&amp;lt;&amp;gt;'Mobile') or&lt;/P&gt;&lt;P&gt;(ProdType&amp;lt;&amp;gt;'SmartPhone' and ProdType&amp;lt;&amp;gt;'Mobile'), GrasRevenueUSD))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 05:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516032#M192662</guid>
      <dc:creator />
      <dc:date>2013-08-22T05:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516033#M192663</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;&lt;/P&gt;&lt;P&gt;Create a variable with the below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vExcludeValues &lt;BR /&gt;=IF(GetFieldSelections(Product,';')='AA;BB' or GetFieldSelections(SubProd,';')='AAA;BBB','SmartPhone',&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF(GetFieldSelections(Product,';')='CC;DD' or GetFieldSelections(SubProd,';')='CCC;DDD','Mobile',&lt;/P&gt;&lt;P&gt;'SmartPhone,Mobile'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now use this variable value in set analysis expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({$&amp;lt;ProdType-={$(vExcludeValues)}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 06:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516033#M192663</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-08-22T06:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516034#M192664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression provided by you is not fulfils the required.&lt;/P&gt;&lt;P&gt;I want to have everything in a variable. In the expression window I want to have only variable name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like $(Variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have solved the issue with if condition itself. But now the issue is to put in variable and to use.&lt;/P&gt;&lt;P&gt;Can you provide me the modified variable value accordingly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 06:12:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516034#M192664</guid>
      <dc:creator />
      <dc:date>2013-08-22T06:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516035#M192665</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;Then in variable don't use =, then in expression box use like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(VariableName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use = in variable declaration then it evaluates the expression and you will get single value in expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 06:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516035#M192665</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-08-22T06:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516036#M192666</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 read your comment and loaded exclude value&amp;nbsp; to a variable (GetFieldSelections )&lt;/P&gt;&lt;P&gt; and then the variable into text box and its working, but&lt;/P&gt;&lt;P&gt;when loading into SA it is not working&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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;category&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-={&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vExclude)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}Quantity ) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 09:51:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516036#M192666</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2015-09-07T09:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516037#M192667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Create a new thread and attach some sample file with your expected output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 10:26:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516037#M192667</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-09-07T10:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516038#M192668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check out 'GetFieldSelections + SetAnalisys' in Qlik Community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 14:23:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516038#M192668</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2015-09-07T14:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections in Setanalysis</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516039#M192669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check out 'GetFieldSelections + SetAnalisys' in Qlik Community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Sep 2015 09:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-in-Setanalysis/m-p/516039#M192669</guid>
      <dc:creator>ilanbaruch</dc:creator>
      <dc:date>2015-09-08T09:30:32Z</dc:date>
    </item>
  </channel>
</rss>

