<?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 Cannot create a YTD YearWeek straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cannot-create-a-YTD-YearWeek-straight-Table/m-p/228343#M80385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I've got a big problem concerning YTD dates in a straight table. My source table contains sales records at yearweek level. For convenience i added for each record the week that lies 52 weeks back in history.&lt;/P&gt;&lt;P&gt;In the final straight table i would like to see 4 columns: YearWeek, Site, Sales en Sales YTD. (Sales YTD based on 52 weeks in history).&lt;/P&gt;&lt;P&gt;Please take a short look at the example that i posted. It will make the problem easy to understand. I hope someone can come up with a solution quick!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tjeerd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Feb 2010 23:33:49 GMT</pubDate>
    <dc:creator>tabletuner</dc:creator>
    <dc:date>2010-02-01T23:33:49Z</dc:date>
    <item>
      <title>Cannot create a YTD YearWeek straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-create-a-YTD-YearWeek-straight-Table/m-p/228343#M80385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I've got a big problem concerning YTD dates in a straight table. My source table contains sales records at yearweek level. For convenience i added for each record the week that lies 52 weeks back in history.&lt;/P&gt;&lt;P&gt;In the final straight table i would like to see 4 columns: YearWeek, Site, Sales en Sales YTD. (Sales YTD based on 52 weeks in history).&lt;/P&gt;&lt;P&gt;Please take a short look at the example that i posted. It will make the problem easy to understand. I hope someone can come up with a solution quick!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tjeerd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Feb 2010 23:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-create-a-YTD-YearWeek-straight-Table/m-p/228343#M80385</guid>
      <dc:creator>tabletuner</dc:creator>
      <dc:date>2010-02-01T23:33:49Z</dc:date>
    </item>
    <item>
      <title>Cannot create a YTD YearWeek straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-create-a-YTD-YearWeek-straight-Table/m-p/228344#M80386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have an idea yet? My customer is in quite a hurry...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tjeerd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 14:02:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-create-a-YTD-YearWeek-straight-Table/m-p/228344#M80386</guid>
      <dc:creator>tabletuner</dc:creator>
      <dc:date>2010-02-02T14:02:08Z</dc:date>
    </item>
    <item>
      <title>Cannot create a YTD YearWeek straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-create-a-YTD-YearWeek-straight-Table/m-p/228345#M80387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tjeerd,&lt;/P&gt;&lt;P&gt;I've been trying to do something similar using set analysis. So far I have been unsuccessful because as far as I can tell, a chart dimension can not be referenced in a set analysis expression. This is because a 'set' is evaluated once for the entire chart, rather than for each row.&lt;/P&gt;&lt;P&gt;To acheive what I think you were after in your application, I manipulated the data during the load stage i.e. in the script.&lt;/P&gt;&lt;P&gt;I produced a second 'YTD' sales figures table, then linked the new table to your existing table using a link table which maps each 'current week' and corresponding site ID, to the relevant YTD week and site ID.&lt;/P&gt;&lt;P&gt;Hopefully this will be obvious enough from the modified application which I've attached to this post.&lt;/P&gt;&lt;P&gt;I hope I've correctly understood your requirement, and that my suggestion is of some use to you. I think it's far from ideal, as it increases the amount of data being loaded, and requires a more specialized script. However, it's perhaps better than nothing &lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Apr 2010 16:33:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-create-a-YTD-YearWeek-straight-Table/m-p/228345#M80387</guid>
      <dc:creator />
      <dc:date>2010-04-14T16:33:08Z</dc:date>
    </item>
    <item>
      <title>Cannot create a YTD YearWeek straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Cannot-create-a-YTD-YearWeek-straight-Table/m-p/228346#M80388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;First of all many thanks for the energy and time you took to help me out with this one!&lt;/P&gt;&lt;P&gt;Your solution proves to be right in your miniqvw. I wish i read yourpost earlier. In the meantime i solved the problem by joining the transaction table on itself. During the join, I increased the date with 364 days. The join resulted in one extra field for the table called Sales YTD.&lt;/P&gt;&lt;P&gt;I think your solution is preferable because I don't like to transform the transaction table.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tjeerd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 15:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cannot-create-a-YTD-YearWeek-straight-Table/m-p/228346#M80388</guid>
      <dc:creator>tabletuner</dc:creator>
      <dc:date>2010-04-15T15:37:53Z</dc:date>
    </item>
  </channel>
</rss>

