<?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 Trouble calculating the average in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446701#M166639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im not sure if the output I want is possible I hope it is so here goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field which calculates the difference between two times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present the information outputted is only correct if I have only one day selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to display the average for a months set of data but then the actual sum for a single day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2012 14:40:23 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-11-19T14:40:23Z</dc:date>
    <item>
      <title>Trouble calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446701#M166639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im not sure if the output I want is possible I hope it is so here goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a field which calculates the difference between two times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At present the information outputted is only correct if I have only one day selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to display the average for a months set of data but then the actual sum for a single day&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 14:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446701#M166639</guid>
      <dc:creator />
      <dc:date>2012-11-19T14:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446702#M166640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you are looking for something like this:&lt;/P&gt;&lt;P&gt;avg(aggr(sum([Field_with_Differences]),[Field_Date]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will sum differences grouped by Date, and calculate the avg. through all dates&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 14:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446702#M166640</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2012-11-19T14:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446703#M166641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens, thanks for your reply, I only have one field -&amp;nbsp; If you are at the top level you are able to view the total for one month, as you drill into the information you get the totals for week day etc, I want these totals to be averaged but then when you drill the the lowest point within the information It should show actual information.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2012 17:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446703#M166641</guid>
      <dc:creator />
      <dc:date>2012-11-19T17:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446704#M166642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, can't quite follow you.&lt;BR /&gt;Perhaps you could draft how you would like the table to look like and the principle of the original data, or upload the qvw&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Nov 2012 07:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446704#M166642</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2012-11-20T07:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446705#M166643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give me a little time and I will upload the data for you with a clear explanation as to what I am trying to do.&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, 20 Nov 2012 11:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446705#M166643</guid>
      <dc:creator />
      <dc:date>2012-11-20T11:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446706#M166644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens apologies for the delayed response I have attached a sample of the data I am using&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 09:24:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446706#M166644</guid>
      <dc:creator />
      <dc:date>2012-11-29T09:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446707#M166645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sandston,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've added a new expression to the existing table calculating the avg number of minutes the flights are delayed.&lt;/P&gt;&lt;P&gt;And this seems to work &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have assumed that the combination of Flight No and date makes the flight unique.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 09:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446707#M166645</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2012-11-29T09:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446708#M166646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens, I am unable to reopen the file as I am using the personal edition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you explain to me what it is I need to add into my document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 09:43:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446708#M166646</guid>
      <dc:creator />
      <dc:date>2012-11-29T09:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446709#M166647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, this is the expression I have added:&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;interval&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;avg&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CHKS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SCH&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[FLT-NO]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),'mm') &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;It can be beneficial to ad Date as a dimension, to validate the formula&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 09:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446709#M166647</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2012-11-29T09:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446710#M166648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jens, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this seems to have worked a treat could you possible explain what the expression means broken down as I wouldnt have known how to create this myself.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 09:53:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446710#M166648</guid>
      <dc:creator />
      <dc:date>2012-11-29T09:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble calculating the average</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446711#M166649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The aggr function calculates the &lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13541838096254451" jivemacro_uid="_13541838096254451"&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CHKS&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;SCH&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;per possible combinations of FlightNo and Date (this should be equilliant to the unique departure) The result will be a string of numbers like this &lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13541840116913033" jivemacro_uid="_13541840116913033"&gt;&lt;P&gt;6.2,3,1.2,10,4&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;You can then use any aggreation function, like sum, avg or stddev, to transform the result into on single value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Nov 2012 10:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-calculating-the-average/m-p/446711#M166649</guid>
      <dc:creator>jfkinspari</dc:creator>
      <dc:date>2012-11-29T10:13:32Z</dc:date>
    </item>
  </channel>
</rss>

