<?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: asking about Average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627592#M1096378</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;thanks for all of your input to me. jonathan dients, thanks for your ideas...I ve explore it n I found solution for my&lt;/P&gt;&lt;P&gt;trouble...this is what I get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(sum(aggr(sum(ProductiveRelated),Plant_No)/(aggr(sum(OperatRelated),Plant_No) + aggr(sum(ProductiveRelated),Plant_No))*100)/count(DISTINCT Plant_No))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ProductiveRelated,OperatRelated they are consist of 2 table with the same plant_No. so I use this solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Hope this pattern can be useful for us in future&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2014 10:42:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-05-19T10:42:04Z</dc:date>
    <item>
      <title>asking about Average</title>
      <link>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627585#M1096371</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;I wanna ask something about average in QV coz I have trouble about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pattern to get UA value. the patters like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UA = (P) / (O + P)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 5 UA value in decimal number:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UA1 = 80/744 = 10,75&lt;/P&gt;&lt;P&gt;UA2 = 1/384 = 0,26&lt;/P&gt;&lt;P&gt;UA3 = 15/744 = 2,01&lt;/P&gt;&lt;P&gt;UA4 = 50/744 = 6,72&lt;/P&gt;&lt;P&gt;UA5 = 62/744 = 8,33&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I calculate it with manual condition it will be like this (10,75 + 0,26 + 2,01 + 6,72 + 8,33)/5 = 28,07/5 = 5,61&lt;/P&gt;&lt;P&gt;but when I try with Qlikview I get different avg value. the value is 6,91.&lt;/P&gt;&lt;P&gt;when I trace it with this expression:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =avg(aggr(((sum(ProductiveRelated))/(sum(OperatRelated) + sum(ProductiveRelated)))*100,EquipType))&lt;/P&gt;&lt;P&gt;I will get the value is 6.91.&lt;/P&gt;&lt;P&gt;the value 6.91 comes from different patter in qlikview. the pattern that I get is ((80+1+15+50+62)/5)/((744+384+744+744+744)/5) = 6,91&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I need to know is how to get value like manual condition in qlikview, Can you help me guys??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: P and O value are different table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks before&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 04:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627585#M1096371</guid>
      <dc:creator />
      <dc:date>2014-05-09T04:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: asking about Average</title>
      <link>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627586#M1096372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you upload your sample qvw that shows the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2014 04:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627586#M1096372</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-09T04:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: asking about Average</title>
      <link>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627587#M1096373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my qvw data connect with database mysql and I get difficult to explain it &lt;/P&gt;&lt;P&gt;but with a simple explenation&amp;nbsp; the calculation is like this&lt;/P&gt;&lt;P&gt;normal pattern is : &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;UA = (P) / (O + P)&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if I try to find the avg of UA&amp;nbsp; then the pattern to get avg is :&lt;/P&gt;&lt;P&gt;avg UA = sigma((P)/(O+P))/count UA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my difficulty is how to put it on qlikview&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 04:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627587#M1096373</guid>
      <dc:creator />
      <dc:date>2014-05-19T04:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: asking about Average</title>
      <link>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627588#M1096374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to create a sample qvw and ipload here explaining the expected output. Otherwise, I guess your :&lt;/P&gt;&lt;P&gt;sigma((P)/(O+P))/count UA, could be something like: =Sum(P/(O+P))/count (&lt;STRONG&gt;Distinct&lt;/STRONG&gt; UA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: 'Distinct' might/might not be required based on your logic. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 05:08:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627588#M1096374</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-05-19T05:08:36Z</dc:date>
    </item>
    <item>
      <title>Re: asking about Average</title>
      <link>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627589#M1096375</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;The difference is because QV is calculating the ratio of the sums, which is not the same as the sum of the ratios (which is what you require).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you are doing this in a straight table, select Sum of Rows in the Total Mode (Properties | Expression). If you are using a pivot table, then use an aggr() expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; = Sum(Aggr(Sum(P) / (Sum(O) + Sum(P)), &lt;EM&gt;&amp;lt;your chart dimensions&amp;gt;&lt;/EM&gt;))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where &lt;EM&gt;&amp;lt;your chart dimensions&amp;gt;&lt;/EM&gt; should be a comma separated list of the dimensions in your chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 06:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627589#M1096375</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2014-05-19T06:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: asking about Average</title>
      <link>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627590#M1096376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are complicating it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you make a chart with &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dimension: EquipType (your UA1..UA5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression: Avg(ProductiveRelated/(OperatRelated+ProductiveRelated))/Count(distinct EquipType)&lt;/P&gt;&lt;P&gt;then I think you will get both the individual averages and the total right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 06:12:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627590#M1096376</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-05-19T06:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: asking about Average</title>
      <link>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627591#M1096377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have a look at the attach example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 06:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627591#M1096377</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2014-05-19T06:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: asking about Average</title>
      <link>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627592#M1096378</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;thanks for all of your input to me. jonathan dients, thanks for your ideas...I ve explore it n I found solution for my&lt;/P&gt;&lt;P&gt;trouble...this is what I get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(sum(aggr(sum(ProductiveRelated),Plant_No)/(aggr(sum(OperatRelated),Plant_No) + aggr(sum(ProductiveRelated),Plant_No))*100)/count(DISTINCT Plant_No))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ProductiveRelated,OperatRelated they are consist of 2 table with the same plant_No. so I use this solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Hope this pattern can be useful for us in future&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 10:42:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/asking-about-Average/m-p/627592#M1096378</guid>
      <dc:creator />
      <dc:date>2014-05-19T10:42:04Z</dc:date>
    </item>
  </channel>
</rss>

