<?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: Show last week values by each day separately in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339077#M515487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome.&amp;nbsp; I'm glad you got what you needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 May 2017 22:15:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-12T22:15:15Z</dc:date>
    <item>
      <title>Show last week values by each day separately</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339072#M515482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm relatively new to both Qlikview and SQL, so please bear with me if this is an easy answer. I did not create the document I am trying to edit, but I have been tasked with the future growth and maintenance of it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have a table with individuals and how many messages they've sent out weekly. However, I want to extend the table to also show how many messages have been sent out each individual day of the previous week (Sun-Sat). &lt;IMG alt="Qlikview Table Screenshot.png" class="jive-image image-1" src="/legacyfs/online/163207_Qlikview Table Screenshot.png" style="height: 73px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression for the total messages for the week is &lt;SPAN style="font-family: 'courier new', courier;"&gt;sum({&amp;lt;week = {'$(=max(week))'}&amp;gt;}[MESSAGE SOURCE1])+sum({&amp;lt;week = {'$(=max(week))'}&amp;gt;}[MESSAGE SOURCE2])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have in my script: &lt;SPAN style="font-family: 'courier new', courier;"&gt;SET DayNames='Mon;Tue;Wed;Thu;Fri;Sat;Sun';&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD date(date, 'M/D/YYYY') as date, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(weekyear(week)&amp;lt;weekyear(today()), date(week, 'M/D/YYYY') ,if(week(week) &amp;lt; week(today()), date(week, 'M/D/YYYY'))) as week,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; date(month, 'M/D/YYYY') as month, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quarter, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fiscal_year;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LOAD date, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; week, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; quarter, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fiscal_year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;already, but I'm not sure if that is helpful for this question or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I call out each day individually without selecting them manually? I need it to be the previous week as this report is run every Tuesday automatically, so while the last Wednesday-Saturday are the most recent of those, I need the last Sunday-Tuesday.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any and all help will be much appreciated. If there's any further information I need to provide, please let me know.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 18:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339072#M515482</guid>
      <dc:creator />
      <dc:date>2017-05-12T18:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Show last week values by each day separately</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339073#M515483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add weekday name to your script as a field.&lt;/P&gt;&lt;P&gt;weekday(date) as WeekdayName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you make your object a pivot table it will then be easy.&lt;/P&gt;&lt;P&gt;Add WeekDayName as a dimension in your pivot table and drag it to the top header row.&lt;/P&gt;&lt;P&gt;Your expression can stay the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 20:48:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339073#M515483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-12T20:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Show last week values by each day separately</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339074#M515484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That did get the days of the weeks in there as columns. Thank you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to ask, is there any way to have a total for the week at the beginning or end of the columns? Or will I have to keep both tables separate and just add them both to the report?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 21:08:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339074#M515484</guid>
      <dc:creator />
      <dc:date>2017-05-12T21:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Show last week values by each day separately</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339075#M515485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Go to the Presentation tab and click&amp;nbsp; 'Partial Sum' on weekday dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecting Subtotals at Top or Bottom will determine whether the total is at the beginning or end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 21:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339075#M515485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-12T21:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Show last week values by each day separately</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339076#M515486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am so glad this was more simple than I was trying to make it. Thank you again for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 21:52:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339076#M515486</guid>
      <dc:creator />
      <dc:date>2017-05-12T21:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Show last week values by each day separately</title>
      <link>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339077#M515487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're welcome.&amp;nbsp; I'm glad you got what you needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 May 2017 22:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-last-week-values-by-each-day-separately/m-p/1339077#M515487</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-12T22:15:15Z</dc:date>
    </item>
  </channel>
</rss>

