<?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 Set Analysis - Get List of current selections into specific field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Get-List-of-current-selections-into-specific-field/m-p/218150#M71315</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aldo,&lt;/P&gt;&lt;P&gt;You can use the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Sum( {$ &amp;lt; [SalesTargets.STMonth] = P(IvMontNo) &amp;gt; } SalesTargets.Quant)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 25 Sep 2010 20:03:59 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-09-25T20:03:59Z</dc:date>
    <item>
      <title>Set Analysis - Get List of current selections into specific field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Get-List-of-current-selections-into-specific-field/m-p/218149#M71314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;The following expression works, but How do I change the values in the list, to the list of selected values in a specific field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( {$ &amp;lt; [SalesTargets.STMonth] = {'01', '02', '05'} &amp;gt; } SalesTargets.Quant)&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( {$ &amp;lt; [SalesTargets.STMonth] = { IvMontNo } &amp;gt; } SalesTargets.Quant) I have tried this but it is not working.&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Aldo.&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Sep 2010 17:32:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Get-List-of-current-selections-into-specific-field/m-p/218149#M71314</guid>
      <dc:creator />
      <dc:date>2010-09-25T17:32:58Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Get List of current selections into specific field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Get-List-of-current-selections-into-specific-field/m-p/218150#M71315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aldo,&lt;/P&gt;&lt;P&gt;You can use the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=Sum( {$ &amp;lt; [SalesTargets.STMonth] = P(IvMontNo) &amp;gt; } SalesTargets.Quant)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Hope that helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Sep 2010 20:03:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Get-List-of-current-selections-into-specific-field/m-p/218150#M71315</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-25T20:03:59Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Get List of current selections into specific field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Get-List-of-current-selections-into-specific-field/m-p/218151#M71316</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;The following seems to be working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum( {&amp;lt;[SalesTargets.STMonth] = {$(=GetFieldSelections(IvMonthNo, ',',12))} &amp;gt;} SalesTargets.Quant)&lt;/P&gt;&lt;DIV&gt;I tried: =Sum( {$ &amp;lt; [SalesTargets.STMonth] = P(IvMonthNo) &amp;gt; } SalesTargets.Quant) but it is not working. What's the meaning of P ?&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;Aldo.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Sep 2010 20:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Get-List-of-current-selections-into-specific-field/m-p/218151#M71316</guid>
      <dc:creator />
      <dc:date>2010-09-25T20:44:31Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Get List of current selections into specific field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Get-List-of-current-selections-into-specific-field/m-p/218152#M71317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;P() is used in set analysis to get all possible values in one field while E() is used to get all excluded values for the specified field.&lt;/P&gt;&lt;P&gt;On the other hand, GetCurrentSelections will work, although if you use it for non-numeric fields you will need to quote values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;chr(39) &amp;amp; GetFieldSelections(Field, chr(39) &amp;amp; ',' &amp;amp; chr(39), 12) &amp;amp; chr(39)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So the final result look like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;'A', 'B', 'C'&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Sep 2010 20:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Get-List-of-current-selections-into-specific-field/m-p/218152#M71317</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-09-25T20:59:01Z</dc:date>
    </item>
    <item>
      <title>Set Analysis - Get List of current selections into specific field</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Get-List-of-current-selections-into-specific-field/m-p/218153#M71318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks man.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Sep 2010 21:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Get-List-of-current-selections-into-specific-field/m-p/218153#M71318</guid>
      <dc:creator />
      <dc:date>2010-09-25T21:04:01Z</dc:date>
    </item>
  </channel>
</rss>

