<?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: Report by Weekday with Totals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939895#M324219</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you reply and providing the sample document.&amp;nbsp; I was able to get it to work the way that I wanted with Gysbert's similar approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Oct 2015 17:37:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-10-23T17:37:39Z</dc:date>
    <item>
      <title>Report by Weekday with Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939889#M324213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a very specific requirement to create a report that looks like the following.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Avg Scope Procedure &amp;amp; Reprocessing Times.png" class="jive-image image-1" src="/legacyfs/online/102684_Avg Scope Procedure &amp;amp; Reprocessing Times.png" style="height: 151px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have a data model with a field for each of the Time columns.&amp;nbsp; The report should aggregate the data by the day of the week and display the average time for each record.&amp;nbsp; So if one record has a date of Oct 12 and another has a date of Oct 19, both would be included in the data shown on the Monday line.&amp;nbsp; The Today line would aggregate records with today's date only.&amp;nbsp; The Overall Avg line would aggregate the entire data set.&amp;nbsp; This table will be read-only but it should update based on selected criteria., ie, just data for October.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;In order to associate a record with a specific day of the week, in my data model, I calculate the DayOfWeek field using the WeekDay() method which returns a dual with value of 0-6 (Mon-Sun).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Beyond that I have tried several things but always end up short of achieving my requirements.&amp;nbsp; Can anyone give me some ideas on how to approach this?&amp;nbsp; I will gladly provide more details if useful.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DataModel.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/102685_DataModel.png" style="height: auto; width: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Oct 2015 15:10:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939889#M324213</guid>
      <dc:creator />
      <dc:date>2015-10-21T15:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Report by Weekday with Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939890#M324214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can calculate a weekday then you have a date field somewhere. I'm going to assume it's called MyDate. Ok, create a new table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DaysOfTheWeek:&lt;/P&gt;&lt;P&gt;LOAD date(Today()) as MyDate, 'Today' as DayOfTheWeek&lt;/P&gt;&lt;P&gt;Autogenerate(1);&lt;/P&gt;&lt;P&gt;LOAD distinct MyDate, 'Overall avg.' &lt;SPAN style="font-size: 13.3333px;"&gt; as DayOfTheWeek&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident Cycle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD distinct MyDate, Text(DayOfWeek) as DayOfTheWeek&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Resident Cycle;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DaysOfTheWeek is now linked with the Cycle table on the field MyDate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You now have a new field DayOfTheWeek that you can use as dimension in your table. Your expressions would be like avg([Scope In Use Time])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 12:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939890#M324214</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-23T12:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Report by Weekday with Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939891#M324215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This might help you! See the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 12:35:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939891#M324215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-23T12:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Report by Weekday with Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939892#M324216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the feedback.&amp;nbsp; You got me really close to where I need to be.&amp;nbsp; However, I still have an issue which I did not mention in my original posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; If there is no data for a specific day of the week or today?&amp;nbsp; The row falls off the table.&amp;nbsp; I have forced all rows to be shown using "Show All Values" on the dimension and creating a dummy (Show) Expression to force a value.&amp;nbsp; Not sure if this is the right/best approach.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="No filters.png" class="jive-image image-2" src="/legacyfs/online/102936_No filters.png" style="font-size: 10pt; line-height: 1.5em; height: 131px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Filtering &amp;amp; Sorting.&amp;nbsp; I added a sort field to the DayOfTheWeek table which works when there is no selection filters.&amp;nbsp; But when I add a selection filter, then I get the following.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sorting.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102935_Sorting.png" style="line-height: 1.5em; font-size: 13.3333px; height: 136px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&amp;nbsp; Thanks for your help.&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 15:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939892#M324216</guid>
      <dc:creator />
      <dc:date>2015-10-23T15:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: Report by Weekday with Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939893#M324217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At least the sorting can be sorted out easily &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;. Sort by an expression =only({1}DaySortOrder)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 16:54:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939893#M324217</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-10-23T16:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: Report by Weekday with Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939894#M324218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much.&amp;nbsp; That did it.&amp;nbsp; I had originally done all sorts of complicated and convoluted stuff to get it to work.&amp;nbsp; Amazing what you can do when you have a better grasp of QlikView.&amp;nbsp; Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 17:12:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939894#M324218</guid>
      <dc:creator />
      <dc:date>2015-10-23T17:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Report by Weekday with Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939895#M324219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for you reply and providing the sample document.&amp;nbsp; I was able to get it to work the way that I wanted with Gysbert's similar approach.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 17:37:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Report-by-Weekday-with-Totals/m-p/939895#M324219</guid>
      <dc:creator />
      <dc:date>2015-10-23T17:37:39Z</dc:date>
    </item>
  </channel>
</rss>

