<?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: Complex averaging problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Complex-averaging-problem/m-p/1255698#M850461</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;I was looking for the second equation, sorry for not being clear enough but you managed anyway!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Mar 2017 08:00:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-03-09T08:00:28Z</dc:date>
    <item>
      <title>Complex averaging problem</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-averaging-problem/m-p/1255696#M850457</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'm new to Qlikview and I'm not even sure how to phrase my question. Im looking at simple survey data (pic attached), at the moment for each question I can show a barchart(labelled) with the question answers (represented as numbers) on the x axis and the frequency with which they were chosen on the y axis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is = Count(DISTINCT users) and it nicely shows the distribution of answers per question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is this, I am trying to get an 'average' score for each question shown in a gauge (if possible?). In the question below 10 people chose option 1, 5 chose option 2, 2 chose option 3 and 3 chose option 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like an expression to calculate the the average of the multiplication y axis value by the x axis value for each x value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for clarity, in the case below it would be =Avg((10 * 1) + (5 * 2) + (2 * 3) + (3 * 4)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="New Bitmap Image.bmp" class="jive-image image-1" src="/legacyfs/online/155665_New Bitmap Image.bmp" style="height: 289px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;I hope that made sense!&lt;/P&gt;&lt;P&gt;Can anyone point me in the right direction?&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/Complex-averaging-problem/m-p/1255696#M850457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Complex averaging problem</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-averaging-problem/m-p/1255697#M850459</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;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: line-through;"&gt;Avg(Aggr(Count(DISTINCT &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; text-decoration: line-through;"&gt;users&lt;/SPAN&gt;) * number, number))&lt;/STRONG&gt;&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;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Sum(Aggr(Count(DISTINCT &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;users&lt;/SPAN&gt;) * number, number))/&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Count(DISTINCT &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;users&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think 1st expression might not work... but I may be wrong. 1st one should give you 9.5, whereas the second one should give you 1.9&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 20:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-averaging-problem/m-p/1255697#M850459</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-03-08T20:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: Complex averaging problem</title>
      <link>https://community.qlik.com/t5/QlikView/Complex-averaging-problem/m-p/1255698#M850461</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;I was looking for the second equation, sorry for not being clear enough but you managed anyway!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 08:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Complex-averaging-problem/m-p/1255698#M850461</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-09T08:00:28Z</dc:date>
    </item>
  </channel>
</rss>

