<?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: Help need in count with variable. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829638#M291996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of GetFieldSelections u can use this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,',')) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2015 12:16:36 GMT</pubDate>
    <dc:creator>ankit777</dc:creator>
    <dc:date>2015-06-04T12:16:36Z</dc:date>
    <item>
      <title>Help need in count with variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829635#M291993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to get count of Test&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I select ID in my list box all the Test should be counted for selected ID's in Listbox and count should be store into a variable . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RCYC:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;ID&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;7&lt;/P&gt;&lt;P&gt;8&lt;/P&gt;&lt;P&gt;9&lt;/P&gt;&lt;P&gt;10&lt;/P&gt;&lt;P&gt;11&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;13&lt;/P&gt;&lt;P&gt;14&lt;/P&gt;&lt;P&gt;15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test:&lt;/P&gt;&lt;P&gt;load * Inline [&lt;/P&gt;&lt;P&gt;Test,ID&lt;/P&gt;&lt;P&gt;1,1&lt;/P&gt;&lt;P&gt;2,1&lt;/P&gt;&lt;P&gt;3,1&lt;/P&gt;&lt;P&gt;4,1&lt;/P&gt;&lt;P&gt;5,2&lt;/P&gt;&lt;P&gt;6,2&lt;/P&gt;&lt;P&gt;7,2&lt;/P&gt;&lt;P&gt;8,3&lt;/P&gt;&lt;P&gt;9,3&lt;/P&gt;&lt;P&gt;10,4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information sample app is attached. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829635#M291993</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-04T12:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in count with variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829636#M291994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From what I understand, try defining you variable using Concat function instead of GetFieldSelections. May be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Concat(DISTINCT ID, ',')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Attaching your qvw for reference&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829636#M291994</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-06-04T12:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in count with variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829637#M291995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;You can use GetFieldSelections() function but you need to specify the third parameter which is optional. You need something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;STRONG&gt;=GetFieldSelections(ID, ',',1000)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Where 1000 values is the limit.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;I wouldn't use Concat() because if there's nothing selecting then Concat() would return all the values. To tackle this issue you need a conditional statement (IF) which might be inefficient.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;www.QlikShare.com&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:15:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829637#M291995</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2015-06-04T12:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in count with variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829638#M291996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead of GetFieldSelections u can use this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt;0, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Concat&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,',')) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:16:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829638#M291996</guid>
      <dc:creator>ankit777</dc:creator>
      <dc:date>2015-06-04T12:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in count with variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829639#M291997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you&amp;nbsp; &lt;/P&gt;&lt;P&gt;It will give me some Idea.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:17:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829639#M291997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-04T12:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in count with variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829640#M291998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you looking for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a variable named something like "vTestCount"&lt;/P&gt;&lt;P&gt;And add expression like = If(GetselectedCount(ID), Count(Test), 0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// If user select ID field, then vTestCount counts the Test value else 0 is store for that variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829640#M291998</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-06-04T12:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in count with variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829641#M291999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;BKC - In case you're interested in understanding Meta Data functions, you can check the following video:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;A class="unlinked" title="http://qlikshare.com/241/"&gt;http://qlikshare.com/241/&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: calibri, verdana, arial, sans-serif;"&gt;DV&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829641#M291999</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2015-06-04T12:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help need in count with variable.</title>
      <link>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829642#M292000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you use ?&lt;/P&gt;&lt;P&gt;Count({$} Test )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 13:00:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-need-in-count-with-variable/m-p/829642#M292000</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-06-04T13:00:22Z</dc:date>
    </item>
  </channel>
</rss>

