<?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: chart and expression help in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808904#M1043493</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your data model has 3 rows and 3 values for '[Minimum req'd to meet STAR]'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you count up the [COR4. How satisfied or dissatisfied are you that your rent provides value for money?]&amp;nbsp; field , it doesn't know which value to divide it by.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You need to aggregate the denomitor too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example with sum().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also wrapped the output in the num() function to format as a %&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/71975_Capture.PNG.png" style="width: 620px; height: 272px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------&lt;/P&gt;&lt;P&gt;=num(&lt;/P&gt;&lt;P&gt;count([COR4. How satisfied or dissatisfied are you that your rent provides value for money?])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum([Minimum req'd to meet STAR])&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;'#,##0.00%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Nov 2014 15:46:57 GMT</pubDate>
    <dc:creator>JonnyPoole</dc:creator>
    <dc:date>2014-11-24T15:46:57Z</dc:date>
    <item>
      <title>chart and expression help</title>
      <link>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808902#M1043491</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;&lt;SPAN style="font-size: 12pt;"&gt;Want the following expression to work in a text box and a gauge chart (one of those where it fills up). The calculation is as follows:&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;Count&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;[COR4. How satisfied or dissatisfied are you that your rent provides value for money?]&lt;/SPAN&gt;)/&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 12pt;"&gt;[Minimum req'd to meet STAR] &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;The expression above works fine in a pivot table chart but no other types or a text box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;EM style=": ; color: #000000; font-size: 10pt;"&gt;*Had to convert from a live app so in chart says sum as opposed to count&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style=": ; color: #000000; font-size: 12pt;"&gt;It is just not working at all - appreciate any help.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;EM style=": ; font-size: 12pt;"&gt;&lt;EM&gt;Chris&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 15:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808902#M1043491</guid>
      <dc:creator />
      <dc:date>2014-11-24T15:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: chart and expression help</title>
      <link>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808903#M1043492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you're trying to do here.&amp;nbsp; Based on your expression it looks like you're trying to count a division expression?&amp;nbsp; Could you provide some clarity?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 15:46:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808903#M1043492</guid>
      <dc:creator />
      <dc:date>2014-11-24T15:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: chart and expression help</title>
      <link>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808904#M1043493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your data model has 3 rows and 3 values for '[Minimum req'd to meet STAR]'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you count up the [COR4. How satisfied or dissatisfied are you that your rent provides value for money?]&amp;nbsp; field , it doesn't know which value to divide it by.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;You need to aggregate the denomitor too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example with sum().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also wrapped the output in the num() function to format as a %&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/71975_Capture.PNG.png" style="width: 620px; height: 272px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------&lt;/P&gt;&lt;P&gt;=num(&lt;/P&gt;&lt;P&gt;count([COR4. How satisfied or dissatisfied are you that your rent provides value for money?])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum([Minimum req'd to meet STAR])&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;'#,##0.00%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 15:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808904#M1043493</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-11-24T15:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: chart and expression help</title>
      <link>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808905#M1043494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like =sum(aggr(sum([COR4. How satisfied or dissatisfied are you that your rent provides value for money?]), [Need Category])/aggr(sum([Minimum req'd to meet STAR]), [Need Category]))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 15:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808905#M1043494</guid>
      <dc:creator />
      <dc:date>2014-11-24T15:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: chart and expression help</title>
      <link>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808906#M1043495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like This? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Nov 2014 16:15:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808906#M1043495</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2014-11-24T16:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: chart and expression help</title>
      <link>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808907#M1043496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This provides a figure which is good. You will notice there is 3 needs category : general needs, leaseholder and housing for older people. Can you advise how to amend your expression so we could have 3 charts - each one just showing % for that need category...somwething along the lines if 'needs category = genral needs' I guess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So essebtially on the app if I just selct 'geenral needs' your expressionprovies the above answer. Want the expression on the chart to do tis wihtout having to select each needs category.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 12:51:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808907#M1043496</guid>
      <dc:creator />
      <dc:date>2014-11-25T12:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: chart and expression help</title>
      <link>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808908#M1043497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can 'focus' the expression to calculate within the context of any filter you like using SET ANALYSIS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SET statement is as follows.&amp;nbsp; '$' means have the expression follow the user's selection. &amp;lt;[Need Category]={'General Needs'}&amp;gt; means that no matter what the user selects, always ensure&amp;nbsp; [Need Category] is only showing numbers for&amp;nbsp; 'General Needs'.&amp;nbsp; You can do this in any aggregation function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{$&amp;lt;[Need Category]={'General Needs'}&amp;gt;}&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample that will work in a text box in your app&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(&lt;/P&gt;&lt;P&gt;count(&amp;nbsp;&amp;nbsp; {$&amp;lt;[Need Category]={'General Needs'}&amp;gt;}&amp;nbsp;&amp;nbsp; [COR4. How satisfied or dissatisfied are you that your rent provides value for money?])&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;sum(&amp;nbsp;&amp;nbsp; {$&amp;lt;[Need Category]={'General Needs'}&amp;gt;}&amp;nbsp; [Minimum req'd to meet STAR])&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;'#,##0.00%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Nov 2014 13:58:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/chart-and-expression-help/m-p/808908#M1043497</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2014-11-25T13:58:52Z</dc:date>
    </item>
  </channel>
</rss>

