<?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: GetPossibleCount() != Count of Fields().GetPossibleValues in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/GetPossibleCount-Count-of-Fields-GetPossibleValues/m-p/387674#M488096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&amp;nbsp; I would have never known that.&amp;nbsp; I guess it is so optional that it isn't in the API documentation.&amp;nbsp; Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jan 2013 16:07:38 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-02T16:07:38Z</dc:date>
    <item>
      <title>GetPossibleCount() != Count of Fields().GetPossibleValues</title>
      <link>https://community.qlik.com/t5/QlikView/GetPossibleCount-Count-of-Fields-GetPossibleValues/m-p/387672#M488093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a bit of an issue with a macro that I'm writing.&amp;nbsp; I'm trying to fetch all possible values for a field so that I can loop through them.&amp;nbsp; There are about 357 values with my current criteria.&amp;nbsp; When I use the expression GetPossibleCount(), it returns the proper number of values.&amp;nbsp; However, when I retrieve a list of the values using GetPossibleValues, I only get 100.&amp;nbsp; Is there a limit to what Qlikview allows to bring back in a Macro?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code that I am using to test the differences in a macro:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;set keys = ActiveDocument.Fields("Ret_Key").GetPossibleValues&lt;BR /&gt;msgbox(keys.Count)&lt;BR /&gt;msgbox(ActiveDocument.evaluate("=getpossiblecount(Ret_Key)")) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first dialog returns 100 while the second 357.&amp;nbsp; It is the same field.&amp;nbsp; I would have expected the same response.&amp;nbsp; Is there a document setting that I need to change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 15:38:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetPossibleCount-Count-of-Fields-GetPossibleValues/m-p/387672#M488093</guid>
      <dc:creator />
      <dc:date>2013-01-02T15:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: GetPossibleCount() != Count of Fields().GetPossibleValues</title>
      <link>https://community.qlik.com/t5/QlikView/GetPossibleCount-Count-of-Fields-GetPossibleValues/m-p/387673#M488094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The getpossiblevalues function has a default maximum results value of 100. The function takes an optional parameter to specify the maximum results it should return.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 15:51:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetPossibleCount-Count-of-Fields-GetPossibleValues/m-p/387673#M488094</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-01-02T15:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: GetPossibleCount() != Count of Fields().GetPossibleValues</title>
      <link>https://community.qlik.com/t5/QlikView/GetPossibleCount-Count-of-Fields-GetPossibleValues/m-p/387674#M488096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&amp;nbsp; I would have never known that.&amp;nbsp; I guess it is so optional that it isn't in the API documentation.&amp;nbsp; Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 16:07:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/GetPossibleCount-Count-of-Fields-GetPossibleValues/m-p/387674#M488096</guid>
      <dc:creator />
      <dc:date>2013-01-02T16:07:38Z</dc:date>
    </item>
  </channel>
</rss>

