<?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: INDEX function not working in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/INDEX-function-not-working/m-p/2069035#M87679</link>
    <description>&lt;P&gt;getfieldselections() has a third parameter for max value which is by default 6. If you need more values to be considered, you have to explicitly pass it. Try like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If(Len(GetFieldSelections(MONTHYEAR&amp;nbsp;&lt;STRONG&gt;, ',' , 100&lt;/STRONG&gt;))&amp;gt;0 and index(GetFieldSelections(MONTHYEAR &lt;STRONG&gt;, ',' , 100&lt;/STRONG&gt;), '$(vJan)')&amp;gt;0 , 1,0)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 May 2023 08:37:18 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2023-05-09T08:37:18Z</dc:date>
    <item>
      <title>INDEX function not working</title>
      <link>https://community.qlik.com/t5/App-Development/INDEX-function-not-working/m-p/2069028#M87678</link>
      <description>&lt;P&gt;Hi ALL,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm created 1 table with 12 columns and want to show dem on show / hide way on selection on MONTHYEAR fields.&lt;/P&gt;
&lt;P&gt;so, for column condition I put below expression, it is working for any 6 selection in MONTHYEAR field but if i select any other MONTHYEAR field it wont work....... I found the issue that is Index become zero after 7 select.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If(Len(GetFieldSelections(MONTHYEAR))&amp;gt;0 and index(GetFieldSelections(MONTHYEAR), '$(vJan)')&amp;gt;0 , 1,0)&lt;/P&gt;
&lt;P&gt;please suggest . Thank you in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 08:06:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/INDEX-function-not-working/m-p/2069028#M87678</guid>
      <dc:creator>TIGERMG</dc:creator>
      <dc:date>2023-05-09T08:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: INDEX function not working</title>
      <link>https://community.qlik.com/t5/App-Development/INDEX-function-not-working/m-p/2069035#M87679</link>
      <description>&lt;P&gt;getfieldselections() has a third parameter for max value which is by default 6. If you need more values to be considered, you have to explicitly pass it. Try like:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If(Len(GetFieldSelections(MONTHYEAR&amp;nbsp;&lt;STRONG&gt;, ',' , 100&lt;/STRONG&gt;))&amp;gt;0 and index(GetFieldSelections(MONTHYEAR &lt;STRONG&gt;, ',' , 100&lt;/STRONG&gt;), '$(vJan)')&amp;gt;0 , 1,0)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 08:37:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/INDEX-function-not-working/m-p/2069035#M87679</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2023-05-09T08:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: INDEX function not working</title>
      <link>https://community.qlik.com/t5/App-Development/INDEX-function-not-working/m-p/2069058#M87680</link>
      <description>&lt;P&gt;Hi Tresesco,&lt;/P&gt;
&lt;P&gt;Its working as per the requirement.&lt;/P&gt;
&lt;P&gt;Thank you&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; so much for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2023 09:07:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/INDEX-function-not-working/m-p/2069058#M87680</guid>
      <dc:creator>TIGERMG</dc:creator>
      <dc:date>2023-05-09T09:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: INDEX function not working</title>
      <link>https://community.qlik.com/t5/App-Development/INDEX-function-not-working/m-p/2071919#M87934</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Tresesco,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have created 1 field in backend i.e ACTUALS and again&amp;nbsp;1 table with 12 columns and want to show dem on show / hide way on selection on ACTUALS fields.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;GetFieldSelections is not working so i take below&amp;nbsp;GetCurrentSelections, its working but aging same not more than 6 selection even applying the same expression which u suggest earlier.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If(Len(GetCurrentSelections(ACTUALS,',',100))&amp;gt;0 and index(GetCurrentSelections(ACTUALS,',',100), '$(v1)')&amp;gt;0 , 1,0)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please suggest.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2023 13:09:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/INDEX-function-not-working/m-p/2071919#M87934</guid>
      <dc:creator>TIGERMG</dc:creator>
      <dc:date>2023-05-16T13:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: INDEX function not working</title>
      <link>https://community.qlik.com/t5/App-Development/INDEX-function-not-working/m-p/2072164#M87951</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/229263"&gt;@TIGERMG&lt;/a&gt;&amp;nbsp;, GetCurrentSelections() is not exactly similar to the earlier one. It doesn't have a field parameter, of course, you need all fields selection, so there is no point mentioning one. I suggest to always check qlik's official help site once you get a hint from community to understand better and resolve. Please check here :&amp;nbsp;&lt;A href="https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/ChartFunctions/FieldFunctions/getcurrentselections.htm" target="_blank" rel="noopener"&gt;GetCurrentSelections | QlikView Help&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;For this case, you may try like:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;=GetCurrentSelections(',','|','@',100)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2023 04:24:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/INDEX-function-not-working/m-p/2072164#M87951</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2023-05-17T04:24:27Z</dc:date>
    </item>
  </channel>
</rss>

