<?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 Newbie needs help with Month To Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Newbie-needs-help-with-Month-To-Date/m-p/388598#M1155129</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'm an absolute newbie at this and about to make a complete fool of myself I expect but...&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table showing total sales this year for a week, total sales last year for the same week, and I also want period to date for this year and last year.&lt;/P&gt;&lt;P&gt;Week, period and year are all variables named ThisWeek, ThisPeriod and ThisYear (ther is also one for LastYear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently the expression looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum (IF(DWH_OP_WEEK &amp;lt;=ThisWeek &lt;/P&gt;&lt;P&gt;AND DWH_OP_DATE_YEAR=ThisYear &lt;/P&gt;&lt;P&gt;AND DWH_OP_DATE_PERIOD=ThisPeriod,SALES_IM_SALES_VALUE_GROSS))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine for period to date at the end of the period, but if I want to look back at week 2 period 1 for example, it still shows me total Period To Date for the whole period (when i only want to see the Period to Date up to week 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be amazing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2013 14:07:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-27T14:07:45Z</dc:date>
    <item>
      <title>Newbie needs help with Month To Date</title>
      <link>https://community.qlik.com/t5/QlikView/Newbie-needs-help-with-Month-To-Date/m-p/388598#M1155129</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'm an absolute newbie at this and about to make a complete fool of myself I expect but...&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table showing total sales this year for a week, total sales last year for the same week, and I also want period to date for this year and last year.&lt;/P&gt;&lt;P&gt;Week, period and year are all variables named ThisWeek, ThisPeriod and ThisYear (ther is also one for LastYear)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently the expression looks like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum (IF(DWH_OP_WEEK &amp;lt;=ThisWeek &lt;/P&gt;&lt;P&gt;AND DWH_OP_DATE_YEAR=ThisYear &lt;/P&gt;&lt;P&gt;AND DWH_OP_DATE_PERIOD=ThisPeriod,SALES_IM_SALES_VALUE_GROSS))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine for period to date at the end of the period, but if I want to look back at week 2 period 1 for example, it still shows me total Period To Date for the whole period (when i only want to see the Period to Date up to week 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be amazing!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 14:07:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Newbie-needs-help-with-Month-To-Date/m-p/388598#M1155129</guid>
      <dc:creator />
      <dc:date>2013-02-27T14:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Newbie needs help with Month To Date</title>
      <link>https://community.qlik.com/t5/QlikView/Newbie-needs-help-with-Month-To-Date/m-p/388599#M1155133</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;Take a look at the date &amp;amp; time functions (use the F1 help in QV).&lt;/P&gt;&lt;P&gt;Maybe you could use InWeekToDate()? or InMonthToDate()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 03:27:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Newbie-needs-help-with-Month-To-Date/m-p/388599#M1155133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-28T03:27:23Z</dc:date>
    </item>
  </channel>
</rss>

