<?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: Select the field values based on given number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246723#M94028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tnx a lot... last help i need from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable empty it should show the error message...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2012 08:55:00 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-04T08:55:00Z</dc:date>
    <item>
      <title>Select the field values based on given number</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246718#M94023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a field with data as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ID&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In inputbox(i.e. Last n ID's)&amp;nbsp; i'll take the values as: ALL;1;2;3;4;5;6;7;8;9;100;500;1000;&lt;/P&gt;&lt;P&gt;- Now the count of the ID is 6.&lt;/P&gt;&lt;P&gt;- If i select &lt;STRONG&gt;1&lt;/STRONG&gt; in the input box the field &lt;STRONG&gt;ID&lt;/STRONG&gt; should show with selection 10 only. If i select 2 it should select 10,7. if select 3 it should select 10,7,5.&lt;/P&gt;&lt;P&gt;- If i select ALL or 6(i.e b'coz 6 is equal to ALL) it should select all values of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible can you give solution with button action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i achive this can anyone help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 10:32:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246718#M94023</guid>
      <dc:creator />
      <dc:date>2012-01-03T10:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select the field values based on given number</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246719#M94024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacq.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you referring to the load order as the order you want to use for the number of IDs to select in a listbox, try attached sample with this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(vNum='ALL','*','('&amp;amp;concat(FieldValue('ID',ValueLoop(1,$(vNum))),'|')&amp;amp;')' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you need to load your field in the appropriate order first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 11:18:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246719#M94024</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-03T11:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Select the field values based on given number</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246720#M94025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tnx swuehl it's working. &lt;/P&gt;&lt;P&gt;one more&amp;nbsp; think i want.. How can i put constraint for this inputbox according below example logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;ID, A&lt;/P&gt;&lt;P&gt;10,1&lt;/P&gt;&lt;P&gt;7,2&lt;/P&gt;&lt;P&gt;5,3&lt;/P&gt;&lt;P&gt;3,4&lt;/P&gt;&lt;P&gt;2,5&lt;/P&gt;&lt;P&gt;1,6&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In frontend i'll select 1,2,3 values of A, then the count of ID is 3. When we select the value of the variable (i.e. inputbox) as 4 it should show the error message if it is ALL then fine(doen't requried error message).&lt;/P&gt;&lt;P&gt;- If the variable value is empty it show the error message.&lt;/P&gt;&lt;P&gt;- Without selecting the values of A. If he select ALL fine. But if he select more than the count of ID it should show the error message.&lt;/P&gt;&lt;P&gt;- one more think is after keeping the constraint. I'll take one button to reset the value of the variable to ALL. When i click the button the variable value should be ALL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 12:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246720#M94025</guid>
      <dc:creator />
      <dc:date>2012-01-03T12:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select the field values based on given number</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246721#M94026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried below constraint..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(len(GetFieldSelections(A))&amp;gt;0,&lt;/P&gt;&lt;P&gt;if($(vNum)='ALL','',$&amp;lt;= (count(distinct ID))), &lt;/P&gt;&lt;P&gt;if($(vNum)='ALL','',$&amp;lt;= (count(distinct ID))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is working little bit only. With above query i'm not able to select ALL and reset the value of the varaible to ALL with button action.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 13:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246721#M94026</guid>
      <dc:creator />
      <dc:date>2012-01-03T13:20:10Z</dc:date>
    </item>
    <item>
      <title>Select the field values based on given number</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246722#M94027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;$(vNum) should probably reference the value to be checked, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(len(GetFieldSelections(A))&amp;gt;0,&amp;nbsp;&amp;nbsp;&amp;nbsp; if( &lt;STRONG&gt;$&lt;/STRONG&gt;='ALL','',$&amp;lt;= (count(distinct ID))),&amp;nbsp;&amp;nbsp;&amp;nbsp; if(&lt;STRONG&gt; $&lt;/STRONG&gt;='ALL','',$&amp;lt;= (count(distinct ID))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 14:21:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246722#M94027</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-03T14:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: Select the field values based on given number</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246723#M94028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tnx a lot... last help i need from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the variable empty it should show the error message...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 08:55:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246723#M94028</guid>
      <dc:creator />
      <dc:date>2012-01-04T08:55:00Z</dc:date>
    </item>
    <item>
      <title>Select the field values based on given number</title>
      <link>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246724#M94029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like this:&lt;/P&gt;&lt;P&gt;=if(len($)&amp;gt;0,&lt;/P&gt;&lt;P&gt;if(len(GetFieldSelections(A))&amp;gt;0,&amp;nbsp;&amp;nbsp;&amp;nbsp; if( $='ALL','',$&amp;lt;= (count(distinct ID))),&amp;nbsp;&amp;nbsp;&amp;nbsp; if( $='ALL','',$&amp;lt;= (count(distinct ID)))),&lt;/P&gt;&lt;P&gt;FALSE())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as constraint, then check error message and put in a text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 11:38:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Select-the-field-values-based-on-given-number/m-p/246724#M94029</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-01-04T11:38:26Z</dc:date>
    </item>
  </channel>
</rss>

