<?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: Average last 30 days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877054#M306294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eduard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you haven't resolvid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, make one example in flat file, presentation on the table data (Streight Table - Orders Last 45 Days), and share us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It makes it easy our undertanding to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2015 15:09:33 GMT</pubDate>
    <dc:creator>jonas_rezende</dc:creator>
    <dc:date>2015-06-15T15:09:33Z</dc:date>
    <item>
      <title>Average last 30 days</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877046#M306286</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;I just created a table with the count number of customers for evey area and as a dimension the last 45 days. But I would like to have a new expression to know the average orders for the last 30 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can help to me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression last 45 days: &lt;/P&gt;&lt;P&gt;Count(DISTINCT{&amp;lt;[SALESID]={'PV0***'},&lt;/P&gt;&lt;P&gt;CREATEDDATETIME={'&amp;gt;=$(=today()-45)&amp;lt;=$(=today())'}&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;} CUSTACCOUNT_CONTADOR)&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;Many thank's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 16:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877046#M306286</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2015-06-11T16:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Average last 30 days</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877047#M306287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eduard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried something similar to the below?&lt;/P&gt;&lt;P&gt;"Avg(Aggr(Count(DISITINCT{&amp;lt;[SALESID]={'PV0***'},CREATEDDATETIME={'&amp;gt;=$(=today()-30)&amp;lt;=$(=today())'}&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;} CUSTACCOUNT_CONTADOR), [SALESID]))"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 17:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877047#M306287</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-06-11T17:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Average last 30 days</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877048#M306288</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 dimension period is different for 45 days and of 35 days, obviously. So,dimension will be filled for range of 45 days, the greater.&lt;/P&gt;&lt;P&gt;Note that, the second expression will be filled to the 30 day period. The others are null "(-)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression last 30 days would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVG({&amp;lt;[SALESID]={'PV0***'},&lt;/P&gt;&lt;P&gt;CREATEDDATETIME={'&amp;gt;=$(=today()-30)'}&amp;gt;} FIELDORDER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See result in attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 18:52:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877048#M306288</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2015-06-11T18:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: Average last 30 days</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877049#M306289</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;I tryied to do all you proposed but did not works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonas, I did not understand to you about the dimension. Dimension is "flat" not calculated, I attached the table and see the real problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thank's for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 09:38:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877049#M306289</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2015-06-12T09:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Average last 30 days</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877050#M306290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Eduard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Verify qvw in attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was cloned the object with the field last 30 days and included one observation, more object text containing explication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 12:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877050#M306290</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2015-06-12T12:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Average last 30 days</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877051#M306291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thank's for your help, but the expresion you did returs the Ticket Average, I'm looking theAverage&amp;nbsp; number of orders for the dimension date from the dimension date minus 30 days....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tryied to do with the File attached, but did not work&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thank's&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 13:34:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877051#M306291</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2015-06-12T13:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Average last 30 days</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877052#M306292</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;See if I understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The average for 3625 &lt;SPAN style="font-size: 13.3333330154419px;"&gt;orders in 34 days is equal 106,61.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Case afirmative, p&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;erform the following steps in the &lt;STRONG&gt;Chart Properties:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;In expression tab, select expression Last 30 Days Avg&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;In &lt;STRONG&gt;Total Model&lt;/STRONG&gt; alter of &lt;STRONG&gt;Expression Total&lt;/STRONG&gt; for &lt;STRONG&gt;Mean of Lines&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Click Ok button.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See figures in attached.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 14:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877052#M306292</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2015-06-12T14:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Average last 30 days</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877053#M306293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I did not explain to you.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="2015-06-12_16h50_00.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89284_2015-06-12_16h50_00.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example the cell for date: 42129, the Average (Media) Cell has to be the average for the last 30 days from 42129 (Red line)&lt;/P&gt;&lt;P&gt;For the next cell, the green one is from date: 42138 and the calculation is from 42138 minus 30 days&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So sorry the head hache&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;Edu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 14:57:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877053#M306293</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2015-06-12T14:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Average last 30 days</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877054#M306294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Eduard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you haven't resolvid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, make one example in flat file, presentation on the table data (Streight Table - Orders Last 45 Days), and share us.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It makes it easy our undertanding to help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 15:09:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877054#M306294</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2015-06-15T15:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Average last 30 days</title>
      <link>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877055#M306295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I did not solved the problem. I attached the chart to see how I did the calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for each Row (or dimension day) I'm calculating the number of orders for each area. And there is another calculation and here it it is the issue. "Last 30 Days Average"&amp;nbsp; cell wants to calculate the date or row minus 30 average orders. WOW!!! and for each row or date!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thank's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eduard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 16:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-last-30-days/m-p/877055#M306295</guid>
      <dc:creator>ecabanas</dc:creator>
      <dc:date>2015-06-15T16:57:11Z</dc:date>
    </item>
  </channel>
</rss>

