<?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: Week day year Average in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529533#M38102</link>
    <description>&lt;P&gt;No, the correct result&amp;nbsp;should be this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result1.PNG" style="width: 193px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3625i66B6B0D6FFDDDA79/image-size/large?v=v2&amp;amp;px=999" role="button" title="result1.PNG" alt="result1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Jan 2019 14:39:44 GMT</pubDate>
    <dc:creator>luca_bellotti</dc:creator>
    <dc:date>2019-01-11T14:39:44Z</dc:date>
    <item>
      <title>Week day year Average</title>
      <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529227#M38058</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I have the following tables:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;:&lt;BR /&gt;LOAD&lt;/P&gt;&lt;P&gt;ID,&lt;BR /&gt;Shop,&lt;BR /&gt;Category,&lt;BR /&gt;Date,&lt;BR /&gt;Sales;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Calendar&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Date,&lt;BR /&gt;WeekDay,&lt;BR /&gt;NrWeek;&lt;/P&gt;&lt;P&gt;&amp;nbsp;What I need to get is an average per week day of the whole year.&lt;/P&gt;&lt;P&gt;In the app I've created a table to check everyday if some sales are missing from the dataset:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="table.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3577iA73EEFDCCC31A297/image-size/large?v=v2&amp;amp;px=999" role="button" title="table.PNG" alt="table.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Aside I created another table where I would like to have the average per week day:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Result.PNG" style="width: 335px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3581i582DEC5BC3879B59/image-size/large?v=v2&amp;amp;px=999" role="button" title="Result.PNG" alt="Result.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;AvgSales = Avg(Aggr(Sum(Sales),WeekDay)&lt;/P&gt;&lt;P&gt;As you can see this is not the average but the sum.&lt;/P&gt;&lt;P&gt;What can I do to get the average?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529227#M38058</guid>
      <dc:creator>luca_bellotti</dc:creator>
      <dc:date>2024-11-16T06:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Week day year Average</title>
      <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529228#M38059</link>
      <description>Hi, Luca&lt;BR /&gt;&lt;BR /&gt;try this&lt;BR /&gt;AvgSales = Avg(Aggr(Sum(Sales),Date)&lt;BR /&gt;&lt;BR /&gt;ZZ</description>
      <pubDate>Fri, 11 Jan 2019 00:42:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529228#M38059</guid>
      <dc:creator>zzyjordan</dc:creator>
      <dc:date>2019-01-11T00:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Week day year Average</title>
      <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529306#M38066</link>
      <description>&lt;P&gt;It doesn't work.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result1.PNG" style="width: 333px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3597iB80536868F1108AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="result1.PNG" alt="result1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 08:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529306#M38066</guid>
      <dc:creator>luca_bellotti</dc:creator>
      <dc:date>2019-01-11T08:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Week day year Average</title>
      <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529340#M38075</link>
      <description>&lt;P&gt;Hi Luca,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Perhaps I'm missing something, but if you only display the WeekDay and Sales in the table, all you need is to us Avg(Sales), no need for the Aggr() function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Average2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3603i6E2140E3D34F6B4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Average2.PNG" alt="Average2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Average.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3602i6215B0817A76DD81/image-size/large?v=v2&amp;amp;px=999" role="button" title="Average.PNG" alt="Average.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 09:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529340#M38075</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2019-01-11T09:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Week day year Average</title>
      <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529416#M38084</link>
      <description>&lt;P&gt;Hi Rbartley,&lt;/P&gt;&lt;P&gt;the problem is that the db has sales&amp;nbsp;for every category&amp;nbsp;of every shop in everyday, so if I do a simple average it shows the average of category per day:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result1.PNG" style="width: 332px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3612iC0C598FC732A553A/image-size/large?v=v2&amp;amp;px=999" role="button" title="result1.PNG" alt="result1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What I need is the total average for eache&amp;nbsp; weekday.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 11:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529416#M38084</guid>
      <dc:creator>luca_bellotti</dc:creator>
      <dc:date>2019-01-11T11:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Week day year Average</title>
      <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529425#M38086</link>
      <description>&lt;P&gt;Ok, could you please post your app (remove&amp;nbsp;of obfuscate any sensitive data if necessary)?&amp;nbsp; You will need to zip it in order to post it as there is a bug on the Qlik Community site that prevents one from uploading the qvf files.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 11:16:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529425#M38086</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2019-01-11T11:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Week day year Average</title>
      <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529435#M38087</link>
      <description>&lt;P&gt;Take a look at the attached app (you'll have to unzip it).&amp;nbsp; I've included category in the data and if I use Avg(Sales) with just WeekDay in the table, the formula still works since Qlik Sense calculates it on the context of the dimensions in the table.&amp;nbsp; I've also added another table which also includes category and in which I've used the formula:&amp;nbsp;Aggr(Avg(Sales),WeekDay).&amp;nbsp; This shows the same average figures too.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AverageByDayIncCategory.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3615i40D2B5C9616A315C/image-size/large?v=v2&amp;amp;px=999" role="button" title="AverageByDayIncCategory.PNG" alt="AverageByDayIncCategory.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 11:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529435#M38087</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2019-01-11T11:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Week day year Average</title>
      <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529475#M38095</link>
      <description>&lt;P&gt;Here you can find my app.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 12:32:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529475#M38095</guid>
      <dc:creator>luca_bellotti</dc:creator>
      <dc:date>2019-01-11T12:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Week day year Average</title>
      <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529518#M38099</link>
      <description>&lt;P&gt;How about this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Aggr(Sum(Sales),WeekDay)/Count(WeekDay)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AvSalesWeekDayUsingCount.JPG" style="width: 725px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3619iD92DB3562F083104/image-size/large?v=v2&amp;amp;px=999" role="button" title="AvSalesWeekDayUsingCount.JPG" alt="AvSalesWeekDayUsingCount.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 13:55:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529518#M38099</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2019-01-11T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Week day year Average</title>
      <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529533#M38102</link>
      <description>&lt;P&gt;No, the correct result&amp;nbsp;should be this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="result1.PNG" style="width: 193px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3625i66B6B0D6FFDDDA79/image-size/large?v=v2&amp;amp;px=999" role="button" title="result1.PNG" alt="result1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 14:39:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529533#M38102</guid>
      <dc:creator>luca_bellotti</dc:creator>
      <dc:date>2019-01-11T14:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Week day year Average</title>
      <link>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529542#M38104</link>
      <description>&lt;P&gt;If I export the data to Excel and create a pivot table that includes the WeekDay and Average of Sales, the results are as follows (the same as in my previous post).&amp;nbsp; So how exactly are you calculating the average?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AvWeeklySalesExcel.JPG" style="width: 862px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3629i9BEA21AB30B56BFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="AvWeeklySalesExcel.JPG" alt="AvWeeklySalesExcel.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 14:53:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Week-day-year-Average/m-p/1529542#M38104</guid>
      <dc:creator>rbartley</dc:creator>
      <dc:date>2019-01-11T14:53:54Z</dc:date>
    </item>
  </channel>
</rss>

