<?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: Count in listbox using variable or expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787109#M278444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks voor replying so quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm now just trying to understand why the result is different and how I can get the same result when using an variable.&lt;BR /&gt;The idea is to make the field that needs to be counted omitted so I only need 1 variable/expression for the count of any field I want to show of let the user choose wicht count to show.&lt;/P&gt;&lt;P&gt;Don't now if this is possible as simple as this but that's what I'm thinking of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2014 09:49:08 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-11-07T09:49:08Z</dc:date>
    <item>
      <title>Count in listbox using variable or expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787107#M278442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi, I'm new in qlikview making my first steps into this world of magic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to make a count of occuring products in a product table in a listbox, count per type of product.&lt;/P&gt;&lt;P&gt;Seems to work fine if I use the count as an expression in the listbox object.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv_img1.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/70705_qv_img1.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;My expression in the listbox oblect : &lt;SPAN style="font-size: 8pt;"&gt; &lt;SPAN style="font-size: 10pt;"&gt;Count (&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;Product_ProductType_Code&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;Now I want to replace this by a variable to be able te reuse it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;So I've created a variabel containing this expression : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;IMG alt="qv_img2.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/70706_qv_img2.PNG.png" style="max-width: 620px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then use this variable in my listbox expression.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="qv_img3.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/70707_qv_img3.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get a different result as shown below (left = count in listbox expression, right is using variable in listbox expression).&lt;BR /&gt; In the result using the variable I get a total count of all products instead of a count on product type.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;IMG alt="qv_img4.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/70708_qv_img4.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;I expected the results to be the same but it's not.&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help in understanding this.&lt;/P&gt;&lt;P&gt;Hugo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 09:20:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787107#M278442</guid>
      <dc:creator />
      <dc:date>2014-11-07T09:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Count in listbox using variable or expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787108#M278443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can you the single variable can provide different values.&lt;/P&gt;&lt;P&gt;A variable here is calculating the entire total without any distribution of the Product type.&lt;/P&gt;&lt;P&gt;I recommend you to use the expression only.&lt;/P&gt;&lt;P&gt;What you want to achieve , why you want variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 09:24:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787108#M278443</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-11-07T09:24:13Z</dc:date>
    </item>
    <item>
      <title>Re: Count in listbox using variable or expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787109#M278444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks voor replying so quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm now just trying to understand why the result is different and how I can get the same result when using an variable.&lt;BR /&gt;The idea is to make the field that needs to be counted omitted so I only need 1 variable/expression for the count of any field I want to show of let the user choose wicht count to show.&lt;/P&gt;&lt;P&gt;Don't now if this is possible as simple as this but that's what I'm thinking of.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 09:49:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787109#M278444</guid>
      <dc:creator />
      <dc:date>2014-11-07T09:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count in listbox using variable or expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787110#M278445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hugo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your variable, remove the = sign at the beginning - what this tells Qlikview is to calculate the value globally, so it will return a total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're storing it as text, when you then reference it in your listbox, include a DSE (dollar sign expansion) to calculate the expression you're storing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So your variable is Count(Product_ProductType_Code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And your expression will be =$(vCountProductType)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 09:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787110#M278445</guid>
      <dc:creator>morganaaron</dc:creator>
      <dc:date>2014-11-07T09:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count in listbox using variable or expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787111#M278446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Variable can not achieve this.&lt;/P&gt;&lt;P&gt;Why you want to omit it?&lt;/P&gt;&lt;P&gt;From where you want it to be omitted ?&lt;/P&gt;&lt;P&gt;Use hide prefix&lt;/P&gt;&lt;P&gt;Set Hide Prefix=$;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now rename&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Product&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;_ProductType_Code as $Product_ProductType_Code&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 09:53:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787111#M278446</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-11-07T09:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: Count in listbox using variable or expression</title>
      <link>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787112#M278447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's exactly what I wanted to now and understand.&lt;/P&gt;&lt;P&gt;Guess I need to get familiar with the syntax and it's differences in result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 10:06:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-in-listbox-using-variable-or-expression/m-p/787112#M278447</guid>
      <dc:creator />
      <dc:date>2014-11-07T10:06:45Z</dc:date>
    </item>
  </channel>
</rss>

