<?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: Variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1124769#M910053</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Do we need another {1}? Not sure, but may be this:&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;=Count ({1} DISTINCT if(Only({1} BST_IsInactive) &amp;lt;&amp;gt; (-1),[Item Number] ))&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jun 2016 01:19:41 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-06-16T01:19:41Z</dc:date>
    <item>
      <title>Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1124766#M910050</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;I have the following variable which gives me the count of items &amp;lt;&amp;gt;-1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count (DISTINCT if(BST_IsInactive &amp;lt;&amp;gt; (-1),[Item Number] ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I require another variable similar to the one above which gives me the count over the entire data set but should not change with any selections. This will allow me to do some % calculations based on the the total number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shamit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1124766#M910050</guid>
      <dc:creator>shamitshah</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1124767#M910051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure I understand what you are trying to do Shamit. Can you elaborate please?&lt;/SPAN&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:14:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1124767#M910051</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-16T01:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1124768#M910052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16.1395px;"&gt;=Count ({1} DISTINCT if(BST_IsInactive &amp;lt;&amp;gt; (-1),[Item Number] ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16.1395px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:16:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1124768#M910052</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-06-16T01:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1124769#M910053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Do we need another {1}? Not sure, but may be this:&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;=Count ({1} DISTINCT if(Only({1} BST_IsInactive) &amp;lt;&amp;gt; (-1),[Item Number] ))&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 01:19:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1124769#M910053</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-16T01:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1124770#M910054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the current variable below, I can get a total distinct count of the number of items in a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count (DISTINCT if(BST_IsInactive &amp;lt;&amp;gt; (-1),[Item Number] ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume that the variable gives a total of 1000 (Item A= 600 and Item B = 400)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, as a percentage of total number of items , A=60% and B=40%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I pick item A from the drop down list the percentage changes to 100%, because the total number now changes to 600.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Irrespective of whether I pick A or B from the drop down list, I want the the total number to remain at 1000 to calculate the percentage of total number of items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried both the suggestions below, but not getting any result in a text box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shamit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:16:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1124770#M910054</guid>
      <dc:creator>shamitshah</dc:creator>
      <dc:date>2016-06-16T02:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1124771#M910055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;How about changing it to set analysis for percentage:&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN style="-webkit-text-size-adjust: auto; background-color: rgba(255, 255, 255, 0);"&gt;=Count (DISTINCT {&amp;lt;BST_IsInactive = {'&amp;lt;&amp;gt;1'}&amp;gt;} [Item Number])/Count(DISTINCT {1&amp;lt;BST_IsInactive = {'&amp;lt;&amp;gt;1'}&amp;gt;} [Item Number])&lt;/SPAN&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 02:22:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1124771#M910055</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-16T02:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1124772#M910056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because he is saying that "The total number should not change and he will be using for % calculations" may be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count(Distinct {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;BST_IsInactive - = { '-1'} &lt;/SPAN&gt;&amp;gt;} [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Item Number] )&amp;nbsp; / &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; Count( {1} Total {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;BST_IsInactive - = { '-1'} &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;} DISTINCT [&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Item Number] )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;OR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Count(Distinct {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;BST_IsInactive - = { '-1'} &lt;/SPAN&gt;&amp;gt;} [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Item Number] )&amp;nbsp; / &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;nbsp; Count( {1} Total DISTINCT {&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;BST_IsInactive - = { '-1'} &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&amp;gt;}&amp;nbsp; [&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Item Number] )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jun 2016 10:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1124772#M910056</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-06-16T10:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1124773#M910057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I now have a variable as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count ({1}DISTINCT if(BST_IsInactive &amp;lt;&amp;gt; (-1),[Item Number] ))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This now forms part of the denominator for the calculation which remain static.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tested it by changing selections and it appears to be working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shamit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 01:12:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1124773#M910057</guid>
      <dc:creator>shamitshah</dc:creator>
      <dc:date>2016-06-17T01:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variable</title>
      <link>https://community.qlik.com/t5/QlikView/Variable/m-p/1124774#M910058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am glad that it worked out...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jun 2016 11:16:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable/m-p/1124774#M910058</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-06-17T11:16:15Z</dc:date>
    </item>
  </channel>
</rss>

