<?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 combined with getfieldselections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614503#M685197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the concat function instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;{&amp;lt;TransactionDay={&lt;/SPAN&gt;$(=concat(distinct chr(39) &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;SnapshotDay&lt;/SPAN&gt; &amp;amp; chr(39), ','))}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;movement_quantity&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has the added advantage where you don't have to specify the number of elements at which GetFieldSelections changes to a format like '12 out of 54'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you insist on GetFieldSelections or need it to get specifically the values selected, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;{&amp;lt;TransactionDay={&lt;/SPAN&gt;'$(=GetFieldSelections(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;SnapshotDay&lt;/SPAN&gt;,chr(39) &amp;amp;',' &amp;amp; chr(39), 100))'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;movement_quantity&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where 100 is just a large number to prevent it to from changing the string to above or "NOT ...".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2014 14:50:49 GMT</pubDate>
    <dc:creator>jerem1234</dc:creator>
    <dc:date>2014-02-06T14:50:49Z</dc:date>
    <item>
      <title>Set Analysis combined with getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614498#M685192</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;&lt;/P&gt;&lt;P&gt;I am trying to create an expression that contains set analysis and combines it with getfieldselections() function.&lt;/P&gt;&lt;P&gt;I have tried :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TransactionDay={'=$(=(GetFieldSelections(SnapshotDay)))'}&amp;gt;}movement_quantity)&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TransactionDay={'=$(#GetFieldSelections(SnapshotDay))'}&amp;gt;}movement_quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as well as others. I am trying to implement that instead of a trigger in a field to correlate selections.&lt;/P&gt;&lt;P&gt;Is that possible??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:26:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614498#M685192</guid>
      <dc:creator />
      <dc:date>2014-02-06T10:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis combined with getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614499#M685193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nikos, try putting the getfieldselections function into a variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:33:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614499#M685193</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-06T10:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis combined with getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614500#M685194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gianni,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried &lt;/P&gt;&lt;P&gt;set vSyncTransactSnapshot=GetFieldSelections(SnapshotDay);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;TransactionDay={'=$(#vSyncTransactSnapshot)'}&amp;gt;}movement_quantity)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this as well but it does not seem to work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614500#M685194</guid>
      <dc:creator />
      <dc:date>2014-02-06T10:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis combined with getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614501#M685195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try without the # :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;TransactionDay={'=$(=vSyncTransactSnapshot)'}&amp;gt;}movement_quantity)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;sum({&amp;lt;TransactionDay={'=$(vSyncTransactSnapshot)'}&amp;gt;}movement_quantity)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614501#M685195</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-02-06T10:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis combined with getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614502#M685196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giannis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No luck yet.&lt;/P&gt;&lt;P&gt;I think I am going to try the trigger field selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 13:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614502#M685196</guid>
      <dc:creator />
      <dc:date>2014-02-06T13:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis combined with getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614503#M685197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the concat function instead:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;{&amp;lt;TransactionDay={&lt;/SPAN&gt;$(=concat(distinct chr(39) &amp;amp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;SnapshotDay&lt;/SPAN&gt; &amp;amp; chr(39), ','))}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;movement_quantity&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has the added advantage where you don't have to specify the number of elements at which GetFieldSelections changes to a format like '12 out of 54'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you insist on GetFieldSelections or need it to get specifically the values selected, use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;{&amp;lt;TransactionDay={&lt;/SPAN&gt;'$(=GetFieldSelections(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;SnapshotDay&lt;/SPAN&gt;,chr(39) &amp;amp;',' &amp;amp; chr(39), 100))'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.727272033691406px;"&gt;movement_quantity&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where 100 is just a large number to prevent it to from changing the string to above or "NOT ...".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 14:50:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614503#M685197</guid>
      <dc:creator>jerem1234</dc:creator>
      <dc:date>2014-02-06T14:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis combined with getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614504#M685198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See this: &lt;A _jive_internal="true" href="https://community.qlik.com/message/1267#1267"&gt;http://community.qlik.com/message/1267#1267&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 14:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614504#M685198</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-06T14:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis combined with getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614505#M685199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But my preference is to use P():&lt;BR /&gt;sum({&amp;lt;TransactionDay=P(SnapshotDay)&amp;gt;} movement_quantity)&lt;/P&gt;&lt;P&gt;It works even if no selections made, and no need to additional parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 14:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614505#M685199</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-06T14:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis combined with getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614506#M685200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is a superb solution jerem1234.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 15:14:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614506#M685200</guid>
      <dc:creator />
      <dc:date>2014-02-06T15:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis combined with getfieldselections</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614507#M685201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help Michael your solution is way more elegant, thus I will mark this one as correct. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 15:28:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-combined-with-getfieldselections/m-p/614507#M685201</guid>
      <dc:creator />
      <dc:date>2014-02-06T15:28:57Z</dc:date>
    </item>
  </channel>
</rss>

