<?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 Relate data to year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270823#M1191172</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 wonder if you can give data a specific year after it has been loaded into qv, or is it possible to do this in the script? The data is from several excel-sheets and its not related to a specific year in the sheets, but all the data shall be related to the same year. The data comes from many excel-files so this will be a better way than update all files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2011 10:40:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-11T10:40:41Z</dc:date>
    <item>
      <title>Relate data to year</title>
      <link>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270823#M1191172</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 wonder if you can give data a specific year after it has been loaded into qv, or is it possible to do this in the script? The data is from several excel-sheets and its not related to a specific year in the sheets, but all the data shall be related to the same year. The data comes from many excel-files so this will be a better way than update all files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 10:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270823#M1191172</guid>
      <dc:creator />
      <dc:date>2011-07-11T10:40:41Z</dc:date>
    </item>
    <item>
      <title>Relate data to year</title>
      <link>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270824#M1191173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Yes, this can be done in Load Script. If you have same field names then QlikView will automatically concatenate the fields and you will see only one table. However, if the names are different then you use forced concatenation. You can also add a column (Year) on the fly within your Load Script.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I hope this helps!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Cheers - DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 10:45:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270824#M1191173</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-07-11T10:45:54Z</dc:date>
    </item>
    <item>
      <title>Relate data to year</title>
      <link>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270825#M1191174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks, but can you explain further? there are no column (Year) in the excelfiles, all data is concatenated in one table. what i want to do is to relate this data with a year, for example 2011. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 10:56:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270825#M1191174</guid>
      <dc:creator />
      <dc:date>2011-07-11T10:56:05Z</dc:date>
    </item>
    <item>
      <title>Relate data to year</title>
      <link>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270826#M1191175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;It may depend on how you want to include this year. &lt;/P&gt;&lt;P&gt;In the middle of the load statement, you can just include the year&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;a, b, c,&lt;/P&gt;&lt;P&gt;2011 as year]&lt;/P&gt;&lt;P&gt;from ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or you can use the function filename() of filebasename()&amp;nbsp; ( you can get more information in the QV Help) to get the year from the file name &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us say that the files have names like: &lt;/P&gt;&lt;P&gt;Sales2010.xls, Sales 2011.xls.&lt;/P&gt;&lt;P&gt;You load script could be like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD a,b, num(right( filebasename(), 4)) as Year&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[Sales*.xls]&lt;/P&gt;&lt;P&gt;(biff, embedded labels, table is Sales$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 11:53:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270826#M1191175</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-07-11T11:53:28Z</dc:date>
    </item>
    <item>
      <title>Relate data to year</title>
      <link>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270827#M1191176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;Erich's solutions should work.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Good luck!&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Cheers - DV&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 12:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270827#M1191176</guid>
      <dc:creator>IAMDV</dc:creator>
      <dc:date>2011-07-11T12:02:14Z</dc:date>
    </item>
    <item>
      <title>Relate data to year</title>
      <link>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270828#M1191177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Thanks DV and Erich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it´s working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/Anders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2011 13:04:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Relate-data-to-year/m-p/270828#M1191177</guid>
      <dc:creator />
      <dc:date>2011-07-11T13:04:52Z</dc:date>
    </item>
  </channel>
</rss>

