<?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 Problem by calculating the average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-by-calculating-the-average/m-p/1382440#M816516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Collegues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application in which I use three tables: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;the first one i have all the production orders sent to our suppliers and its day and supplier&lt;/LI&gt;&lt;/OL&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 529px; height: 89px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;RELEASE_DAY&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ORDER&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;SUPPLIER&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. the second one i have the "queue" of all the suppliers in every day since today - 400 days ago&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="75" style="border: 1px solid rgb(0, 0, 0); height: 77px; width: 527px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;DAY&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;QUEUE&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;SUPPLIER&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2.4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1.4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I have a master calendar. the purpose I created that calendar is to show in a graph all the days, instead of only the days that there was an order release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How they are related:&lt;/P&gt;&lt;P&gt;The first table is related with the second one by DAY and SUPPLIER. The second one is related with the third one by the day only;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal of showing all the day was accomplished, but the thing is: I want to calculate the average queue of all suppliers in a certain day, but only I can do is calculate the average queue of the suppliers that had a realeased order in that day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Problem by calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-by-calculating-the-average/m-p/1382440#M816516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Collegues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application in which I use three tables: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;the first one i have all the production orders sent to our suppliers and its day and supplier&lt;/LI&gt;&lt;/OL&gt;&lt;TABLE border="1" class="jiveBorder" height="99" style="border: 1px solid rgb(0, 0, 0); width: 529px; height: 89px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;RELEASE_DAY&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;ORDER&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;SUPPLIER&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. the second one i have the "queue" of all the suppliers in every day since today - 400 days ago&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="75" style="border: 1px solid rgb(0, 0, 0); height: 77px; width: 527px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;DAY&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;QUEUE&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;SUPPLIER&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2.4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;01/01/2017&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1.4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;B&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. I have a master calendar. the purpose I created that calendar is to show in a graph all the days, instead of only the days that there was an order release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How they are related:&lt;/P&gt;&lt;P&gt;The first table is related with the second one by DAY and SUPPLIER. The second one is related with the third one by the day only;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal of showing all the day was accomplished, but the thing is: I want to calculate the average queue of all suppliers in a certain day, but only I can do is calculate the average queue of the suppliers that had a realeased order in that day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone help me with this?&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/Problem-by-calculating-the-average/m-p/1382440#M816516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem by calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-by-calculating-the-average/m-p/1382441#M816517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not exactly sure what you are trying to achieve, so an expected result with the provided data would definitely help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe it's just about how you are calculating the average, so instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Avg(QUEUE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could try something like&lt;/P&gt;&lt;P&gt;=Sum(QUEUE) / Count(&lt;STRONG&gt;TOTAL&lt;/STRONG&gt; DISTINCT SUPPLIER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to calculate the average using all distinct suppliers across all dimensional (date) values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 07:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-by-calculating-the-average/m-p/1382441#M816517</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-09-09T07:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem by calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-by-calculating-the-average/m-p/1382442#M816518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan, you are right, I guess I wasnt specific enough.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let´s suppose that my supplier´s base is the one below with it´s WIP on the day 01/01/2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Supplier WIP.JPG" class="jive-image image-1" src="/legacyfs/online/176175_Supplier WIP.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The average WIP (what I am trying to calculate) in that case is&amp;nbsp; 1.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What the application is doing is taking into account only the Suppliers that had a realease date in the day Im willing to check.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Supplier WIP.JPG" class="jive-image image-2" src="/legacyfs/online/176176_Supplier WIP.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the day 01/01/2017, only the Suppliers A, B and E had an order released to them. For that reason, the application is returning the average as 1.5, instead of 1.4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, my question is: how to make it take the 5 suppliers into account, instead of only 3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 21:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-by-calculating-the-average/m-p/1382442#M816518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-11T21:53:59Z</dc:date>
    </item>
  </channel>
</rss>

