<?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 to Array? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-Array/m-p/358724#M702657</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;STRONG&gt;swuehl&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't had chance to test this but the mathematics look correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, ideally I need to be able to store each value selected - and then loop through them to perform an operation on each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt;&amp;nbsp; Although, as I'll know the Max and Min (and whether or not they are in succession) I should be able to use a &lt;STRONG&gt;For Loop&lt;/STRONG&gt;... if I manage using this method I will mark your post as "Correct"&amp;nbsp; &lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: bainsteven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jul 2012 16:47:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-19T16:47:32Z</dc:date>
    <item>
      <title>GetFieldSelections to Array?</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-Array/m-p/358722#M702655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiya Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking to evaluate whether or not the current Selections are in succession (ie: selecting Months 1,2,3,4 - rather than holding CTRL and selecting Months 1,3,5,7).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the macro I am writing my first thought was to convert the list returned by &lt;STRONG&gt;GetFieldSelections(MonthNumber, ',', 12)&lt;/STRONG&gt; into an Array - and then use a &lt;STRONG&gt;For Each&lt;/STRONG&gt; loop to cycle through the entries and evaluate them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a function which will convert GetFieldSelections into an Array?... or is there a better way of achieving this?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 15:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-Array/m-p/358722#M702655</guid>
      <dc:creator />
      <dc:date>2012-07-19T15:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections to Array?</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-Array/m-p/358723#M702656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like this would return the answer for your specific issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=if( ( ( max(Month)-min(Month) +1) / count(distinct Month) ) =1, 'Succession','With gaps')&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 15:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-Array/m-p/358723#M702656</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-19T15:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections to Array?</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-Array/m-p/358724#M702657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;STRONG&gt;swuehl&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't had chance to test this but the mathematics look correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, ideally I need to be able to store each value selected - and then loop through them to perform an operation on each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt;&amp;nbsp; Although, as I'll know the Max and Min (and whether or not they are in succession) I should be able to use a &lt;STRONG&gt;For Loop&lt;/STRONG&gt;... if I manage using this method I will mark your post as "Correct"&amp;nbsp; &lt;STRONG&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: bainsteven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 16:47:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-Array/m-p/358724#M702657</guid>
      <dc:creator />
      <dc:date>2012-07-19T16:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: GetFieldSelections to Array?</title>
      <link>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-Array/m-p/358725#M702658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that you are evaluating GetFieldSelections in a macro like this&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading" href="https://community.qlik.com/thread/57371" title="http://community.qlik.com/thread/57371"&gt;http://community.qlik.com/thread/57371&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. you are getting a string back, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there a probably better ways to handle this if you need to look at the separate values anyway, maybe like&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="loading active_link" href="https://community.qlik.com/message/122090#122090" title="http://community.qlik.com/message/122090#122090"&gt;http://community.qlik.com/message/122090#122090&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jul 2012 17:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetFieldSelections-to-Array/m-p/358725#M702658</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-19T17:17:00Z</dc:date>
    </item>
  </channel>
</rss>

