<?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: text box script - show a % in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/text-box-script-show-a/m-p/507918#M1125909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(Count ({&amp;lt;[Decency]= {Decent}&amp;gt;} [Decency])/ Count({1} [Decency]), '#,##0.00%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 12:26:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-19T12:26:09Z</dc:date>
    <item>
      <title>text box script - show a %</title>
      <link>https://community.qlik.com/t5/QlikView/text-box-script-show-a/m-p/507914#M1125905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Came across really cool expression that shows a headline figure in the form of a text box:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;='£' &amp;amp; Num&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Round&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[Tenant_Arrears]&lt;/SPAN&gt;)), '#,##0')&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;however, when trying to show another figure, this time a % were struggling. The script is below to try and get this % figure and works in princple in a straight table but we want this text box to just to show 'decent' properties as a % of all properties.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Current script : &lt;SPAN style="color: #0000ff;"&gt;Num&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;[Decency]&lt;/SPAN&gt;= 'Decent')/ &lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;TOTAL&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Decency]&lt;/SPAN&gt;), '#.##%') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Decency is the field with the 3 options of 'Decent', 'Non-decent' and Potentially Non-decent'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Figures used: 'Decent' = 4376,&amp;nbsp; 'Non-decent' = 199 and Potentially Non-decent' = 10009&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Appreciate any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-box-script-show-a/m-p/507914#M1125905</guid>
      <dc:creator />
      <dc:date>2013-12-19T12:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: text box script - show a %</title>
      <link>https://community.qlik.com/t5/QlikView/text-box-script-show-a/m-p/507915#M1125906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Num&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;[Decency]&lt;/SPAN&gt;= 'Decent')/ &lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;TOTAL&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Decency]&lt;/SPAN&gt;), '#.##0') &amp;amp; '%'&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:15:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-box-script-show-a/m-p/507915#M1125906</guid>
      <dc:creator />
      <dc:date>2013-12-19T12:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: text box script - show a %</title>
      <link>https://community.qlik.com/t5/QlikView/text-box-script-show-a/m-p/507916#M1125907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Total keyword is used to ignore dimensions in charts. So in text box it has no relavance, you may try {1} like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Num&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;[Decency]&lt;/SPAN&gt;= 'Decent')/ &lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;{1}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;[Decency]&lt;/SPAN&gt;), '#.##%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-box-script-show-a/m-p/507916#M1125907</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-19T12:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: text box script - show a %</title>
      <link>https://community.qlik.com/t5/QlikView/text-box-script-show-a/m-p/507917#M1125908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;[Decency]&lt;/SPAN&gt;= 'Decent')/ &lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;TOTAL&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[Decency]&lt;/SPAN&gt;))*100 &amp;amp; '%'&lt;/SPAN&gt;,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:21:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-box-script-show-a/m-p/507917#M1125908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-19T12:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: text box script - show a %</title>
      <link>https://community.qlik.com/t5/QlikView/text-box-script-show-a/m-p/507918#M1125909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Num(Count ({&amp;lt;[Decency]= {Decent}&amp;gt;} [Decency])/ Count({1} [Decency]), '#,##0.00%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 12:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/text-box-script-show-a/m-p/507918#M1125909</guid>
      <dc:creator />
      <dc:date>2013-12-19T12:26:09Z</dc:date>
    </item>
  </channel>
</rss>

