<?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: Loading a table with two YEAR values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-a-table-with-two-YEAR-values/m-p/2004023#M1221483</link>
    <description>&lt;P&gt;Figured it out literally thirty seconds after I posted this, I just needed to include a second line under the last line.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;m: mapping load date(date#("Out Year", 'YYYY')), [Cumulative Inflation];
Resident Sheet1;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2022 10:07:47 GMT</pubDate>
    <dc:creator>FionnM</dc:creator>
    <dc:date>2022-11-14T10:07:47Z</dc:date>
    <item>
      <title>Loading a table with two YEAR values</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-table-with-two-YEAR-values/m-p/2004022#M1221482</link>
      <description>&lt;P&gt;I have an Excel spreadsheet with three columns, "In Year", "Out Year" and "Cumulative Inflation". It looks like this:&lt;/P&gt;
&lt;P&gt;IN YEAR OUT YEAR CUMULATIVE INFLATION&lt;/P&gt;
&lt;P&gt;2016&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2023&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.6718&lt;/P&gt;
&lt;P&gt;I want to load it in my script so that it parses the values in "In Year" and "Out Year" as years, and associates each unique combination of "In Year" and "Out Year" with a specific value for "Cumulative Inflation" &lt;EM&gt;(e.g.&lt;/EM&gt;&amp;nbsp;if the "In Year" is 2016 and the "Out Year" is 2023, the "Cumulative Inflation" is 1.6718).&lt;/P&gt;
&lt;P&gt;So far my script looks like this:&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;LOAD [IN YEAR] as [In Year], 
     [OUT YEAR] as [Out Year], 
     [CUMULATIVE INFLATION] as [Cumulative Inflation]
FROM
[C:\QlikviewServer\CCD\Sources\Cumulative inflation.xlsx]
(ooxml, embedded labels, table is Sheet1);

m: mapping load date(date#("In Year", 'YYYY')), [Cumulative Inflation];
Resident Sheet1;&lt;/LI-CODE&gt;
&lt;P&gt;I can't figure out how to load the "Out Year" column at the same time as the "In Year" column.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 10:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-table-with-two-YEAR-values/m-p/2004022#M1221482</guid>
      <dc:creator>FionnM</dc:creator>
      <dc:date>2022-11-14T10:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Loading a table with two YEAR values</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-a-table-with-two-YEAR-values/m-p/2004023#M1221483</link>
      <description>&lt;P&gt;Figured it out literally thirty seconds after I posted this, I just needed to include a second line under the last line.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;m: mapping load date(date#("Out Year", 'YYYY')), [Cumulative Inflation];
Resident Sheet1;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 10:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-a-table-with-two-YEAR-values/m-p/2004023#M1221483</guid>
      <dc:creator>FionnM</dc:creator>
      <dc:date>2022-11-14T10:07:47Z</dc:date>
    </item>
  </channel>
</rss>

