<?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: Problem with weighting scores on a Scorecard in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392531#M490444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am just curious why my expressions seemed to not be working while others (which look to me essentially the same) seem to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After copying my expressions into your sample file, I am still unsure, the results look ok to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides this, I think using the solution with no advanced aggregation, i.e. using the TOTAL qualifier, should solve your subtotal issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice evening,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Oct 2012 16:34:14 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2012-10-09T16:34:14Z</dc:date>
    <item>
      <title>Problem with weighting scores on a Scorecard</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392525#M490438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again I need to turn to my Qlikview colleagues for a nudge in the right direction. As usual all help very gratefully received.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I want to look at the amount of work done by users &amp;amp; weight it by the&amp;nbsp; average amount of time taken for the job by all users.&lt;/P&gt;&lt;P&gt;Consider the following data - for simplicity I have two users Joe &amp;amp; Fred who do two different jobs A &amp;amp; B&lt;/P&gt;&lt;P&gt;during the day they performed the following &amp;amp; I want to scorecard them to see who is working most efficiently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" height="161" style="width: 299px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;" width="64"&gt;person&lt;/TD&gt;&lt;TD style="border: 0px solid black;" width="64"&gt;job type&lt;/TD&gt;&lt;TD style="border: 0px solid black;" width="75"&gt;time taken&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;Joe&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;Joe&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;Joe&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;Joe&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;B&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;Joe&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;B&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;Fred&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;B&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;Fred&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.8&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Excel I can display the summary data as follows.&lt;/P&gt;&lt;P&gt;Note for column e&amp;nbsp; I say that for type A the average is 0.5+0.6+0.7+0.8 /4 = 0.65 &amp;amp; for type B the average is 0.5+0.8+0.9/3 = 0.73&lt;/P&gt;&lt;P&gt;and then apply it to the quantites to work out a deviation from the average&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;" width="64"&gt;a&lt;/TD&gt;&lt;TD style="border: 0px solid black;" width="64"&gt;b&lt;/TD&gt;&lt;TD style="border: 0px solid black;" width="118"&gt;c&lt;/TD&gt;&lt;TD style="border: 0px solid black;" width="70"&gt;d&lt;/TD&gt;&lt;TD style="border: 0px solid black;" width="117"&gt;e&lt;/TD&gt;&lt;TD style="border: 0px solid black;" width="64"&gt;f&lt;/TD&gt;&lt;TD style="border: 0px solid black;" width="64"&gt;g&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;person&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;type&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;total time taken&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;no of jobs&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;average by type&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;d*e&lt;/TD&gt;&lt;TD colspan="2" style="border: 0px solid black;"&gt;efficiency score = f-c&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;Fred&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.8&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;"&gt;0.65&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.65&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;-0.15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;Fred&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;B&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.9&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;"&gt;0.73&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.73&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;-0.17&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;Joe&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;A&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1.8&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;3&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;"&gt;0.65&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1.95&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.15&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20" style="border: 0px solid black;"&gt;Joe&lt;/TD&gt;&lt;TD style="border: 0px solid black;"&gt;B&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1.3&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;2&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border: 0px solid black;"&gt;0.73&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;1.46&lt;/TD&gt;&lt;TD align="right" style="border: 0px solid black;"&gt;0.16&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have nearly got a formulae to work in Qlik - but it will only work for one user !!!!&lt;/P&gt;&lt;P&gt;my column e equivalent in Qlik displays 0.65 for Joe "A" &amp;amp; 0.73 for Joe "B" but "-" both times for Fred&lt;/P&gt;&lt;P&gt;Person &amp;amp; Type in my chart are Dimensions (in that order) &amp;amp; the expression average score is &lt;/P&gt;&lt;P&gt;(aggr(Sum(time taken),Type)/aggr(Count(Case),Type))*Count(Case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/267227/" style="max-width: 1200px; max-height: 900px;" /&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;IMG class="jiveImage" src="https://community.qlik.com/message/267227/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 19:32:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392525#M490438</guid>
      <dc:creator />
      <dc:date>2012-10-08T19:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with weighting scores on a Scorecard</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392526#M490439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try a NODISTINCT qualifier with the aggr() function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;(aggr(NODISTINCT Sum(time taken) / Count(Case),Type))*Count(Case)&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;edit: It's probably even easier to use&lt;/P&gt;&lt;P&gt;=sum(TOTAL&amp;lt;[job type]&amp;gt; [time taken]) / count(TOTAL&amp;lt;[job type]&amp;gt; Case) * count(Case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2012 19:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392526#M490439</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-08T19:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with weighting scores on a Scorecard</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392527#M490440</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;You could also try this expressions,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For column E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(nodistinct avg([time taken]), [job type])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For column F&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count([job type])*aggr(nodistinct avg([time taken]), [job type])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For column G&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count([job type])*aggr(nodistinct avg([time taken]), [job type]) - sum([time taken])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 06:58:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392527#M490440</guid>
      <dc:creator />
      <dc:date>2012-10-09T06:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with weighting scores on a Scorecard</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392528#M490441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Swuehl - your answer indicated I was on the right track but did not fix the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzen - Spot on.&amp;nbsp; However once again shows that as good as qlikview is (&amp;amp; I think its really good) sometimes &lt;/P&gt;&lt;P&gt;the syntax can get very complex !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 09:04:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392528#M490441</guid>
      <dc:creator />
      <dc:date>2012-10-09T09:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with weighting scores on a Scorecard</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392529#M490442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right, the syntax can get very complex, the learning curve might get a little steep, so good luck and keep on going. But this is due to the fact that QV's syntax is really powerful (but unfortunately also due to the fact that it is not always as consistent and easy as possible).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May I ask why my above expression haven't fixed the issue? I do get the numbers from your result table, column f when applying the expression to your sample data (well, you haven't provided Case field, so I used actually just person). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using avg() for the average is of course a good idea, so I would do it like this without any advanced aggregation:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=avg(TOTAL&amp;lt;[job type]&amp;gt; [time taken]) * count(person) - sum([time taken])&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 09:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392529#M490442</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-09T09:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with weighting scores on a Scorecard</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392530#M490443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have attached my original test qvw for you to look at. when i added your code it made no change for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However for a bonus 5 points the one extra thing I would like to do is to produce a subtotal by person of their net deviation from the average.so using the code above Fred would have a total displayed of -0.32 &amp;amp; joe would show 0.31.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Janzens reply works perfectly for each line but I cannot get it to subtotal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 13:24:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392530#M490443</guid>
      <dc:creator />
      <dc:date>2012-10-09T13:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with weighting scores on a Scorecard</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392531#M490444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am just curious why my expressions seemed to not be working while others (which look to me essentially the same) seem to work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After copying my expressions into your sample file, I am still unsure, the results look ok to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Besides this, I think using the solution with no advanced aggregation, i.e. using the TOTAL qualifier, should solve your subtotal issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice evening,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 16:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-weighting-scores-on-a-Scorecard/m-p/392531#M490444</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-10-09T16:34:14Z</dc:date>
    </item>
  </channel>
</rss>

