<?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: computing values on a bar chart based on a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820319#M472532</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you see it now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Jan 2015 21:28:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-01-06T21:28:36Z</dc:date>
    <item>
      <title>computing values on a bar chart based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820312#M472525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I am trying to create a qlikview bar chart with 2 bars, one showing the selected client's (saying C1) value (say sales) and other showing the average of 4 clients sales (say C1 C2 C3 C4)....&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;I am not able to compute average AND show the individual client value ....Client can change so I also need an option to change the client (I have kinda got that worked out by creating a variable for it).... It would be great if someone please help me with a sample example or any other suggestions welcome&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;In short looking to create a bar chart showing with 2 bars (Client and Average) and an option to change the client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks for the help.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jan 2015 21:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820312#M472525</guid>
      <dc:creator />
      <dc:date>2015-01-05T21:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: computing values on a bar chart based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820313#M472526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The simplest and quickest I could think of was to display all four dimensions on x-axis along with total as the fifth dimension. Pls see attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 00:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820313#M472526</guid>
      <dc:creator />
      <dc:date>2015-01-06T00:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: computing values on a bar chart based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820314#M472527</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for selected Client: &lt;/P&gt;&lt;P&gt;=Sum(Sales) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression for remaining Clients: &lt;/P&gt;&lt;P&gt;=Sum({1-$}Sales) /Count({1-$} DISTINCT Client)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 02:31:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820314#M472527</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-01-06T02:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: computing values on a bar chart based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820315#M472528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have combined the two earlier responses and made a sample file to match your requirement using a Resident Load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7741"&gt;Average Sales&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this helped you, please mark as Helpful. If it solves your issue, please mark as Answer&lt;/P&gt;&lt;P&gt;If you are viewing this topic and found it informative, please like my comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Dhruv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 03:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820315#M472528</guid>
      <dc:creator>djsampat</dc:creator>
      <dc:date>2015-01-06T03:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: computing values on a bar chart based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820316#M472529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dhruv,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the response. This was close...sticking to your example, I have more than 100 products so its not feasible for me to show all products in a single chart .... is there an option where we can have an Input Box and select a company to dynamically change the &amp;lt;client&amp;gt; on the chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your resident load method, it gives me the following error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table not found&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Average:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum([Overall Impact From 3R's])/Count(DISTINCT [Overall Impact From 3R's]) as Averageoverallimpact3Rs&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;resident [Overall Impact From 3R's]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of the above .. can I just not have another expression for average? like avg(sales) ? &lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know what you think.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 14:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820316#M472529</guid>
      <dc:creator />
      <dc:date>2015-01-06T14:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: computing values on a bar chart based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820317#M472530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see attached. I think this should work for you. You will have only two bars. One for the product and the other is total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 20:06:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820317#M472530</guid>
      <dc:creator />
      <dc:date>2015-01-06T20:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: computing values on a bar chart based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820318#M472531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ajay, I do not see any attachment from you? Can you please resend the attachment? Thanks. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 21:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820318#M472531</guid>
      <dc:creator />
      <dc:date>2015-01-06T21:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: computing values on a bar chart based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820319#M472532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you see it now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jan 2015 21:28:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820319#M472532</guid>
      <dc:creator />
      <dc:date>2015-01-06T21:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: computing values on a bar chart based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820320#M472533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use either of the following:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg(TOTAL Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({1} TOTAL Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If this helped you, please mark as Helpful. If it solves your issue, please mark as Answer&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If you are viewing this topic and found it informative, please like my comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Regards&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dhruv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 00:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/computing-values-on-a-bar-chart-based-on-a-variable/m-p/820320#M472533</guid>
      <dc:creator>djsampat</dc:creator>
      <dc:date>2015-01-08T00:42:02Z</dc:date>
    </item>
  </channel>
</rss>

