<?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: Join by two fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Join-by-two-fields/m-p/882810#M655113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is below script line giving expected result? Verify that before joining the table with Fiscal Calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField(SubField(FileName(), ' ',-1 ),'.',1) AS NRF_WK_OF_MONTH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Couple of issues I see here are&lt;/P&gt;&lt;P&gt;1. SubField retuns a string. Convert it to Number.&lt;/P&gt;&lt;P&gt;2. As per QlikView help,&lt;EM&gt; If several &lt;SPAN style="font-weight: bold;"&gt;subfield&lt;/SPAN&gt; functions are used in the same &lt;SPAN style="font-weight: bold;"&gt;load&lt;/SPAN&gt; statement, the Cartesian product of all combinations will be generated. &lt;/EM&gt;If this is causing the issue, do the second SubField in the Load on Load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And provide your sample file name/file name format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KKR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2015 18:02:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-07-15T18:02:53Z</dc:date>
    <item>
      <title>Join by two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Join-by-two-fields/m-p/882807#M655110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I loaded &lt;SPAN style="font-size: 13.3333330154419px;"&gt;NFR_MONTH_SHORT_NAME&lt;/SPAN&gt; and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;NRF_WK_OF_MONTH&lt;/SPAN&gt; from file name and then try to join it with NRFcalendar file. NRF calendar file contains following fields: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/92979_Untitled.jpg" style="font-size: 13.3333330154419px;" /&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;WKDate:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month(Date#('$(MonthName2)','MMMM'))AS NFR_MONTH_SHORT_NAME,&lt;/P&gt;&lt;P&gt;&amp;nbsp; SubField(SubField(FileName(), ' ',-1 ),'.',1) AS NRF_WK_OF_MONTH&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;[$(vFile)]&lt;/P&gt;&lt;P&gt;$(vLEXT); &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Left Join &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD WKEND, &lt;/P&gt;&lt;P&gt;&amp;nbsp; NRF_MONTH_SHORT_NAME, &lt;/P&gt;&lt;P&gt;&amp;nbsp; NRF_WK_OF_MONTH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FISCAL_YEAR&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&lt;Z&gt;&lt;/Z&gt;&lt;/P&gt;&lt;P&gt;(ooxml, embedded labels, table is Sheet1)&lt;/P&gt;&lt;P&gt;WHERE FISCAL_YEAR = '2015';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I return WKEND date from file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:36:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-by-two-fields/m-p/882807#M655110</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-07-15T17:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Join by two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Join-by-two-fields/m-p/882808#M655111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couldn't understand your requirement. After the left join, the resultant table will have WKEND. What do you mean by 'How can I return WKEND date from file'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KKR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-by-two-fields/m-p/882808#M655111</guid>
      <dc:creator />
      <dc:date>2015-07-15T17:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Join by two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Join-by-two-fields/m-p/882809#M655112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It didn't return correct WKEND, for example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If in filename&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;NRF_MONTH_SHORT_NAME = Mar and&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; NRF_WK_OF_MONTH = 3 it should return 3/21/2015, but it return 2/7/2015 and its happened for different month and week. It always return first line - 2/7/2015&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-by-two-fields/m-p/882809#M655112</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-07-15T17:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Join by two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Join-by-two-fields/m-p/882810#M655113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is below script line giving expected result? Verify that before joining the table with Fiscal Calendar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SubField(SubField(FileName(), ' ',-1 ),'.',1) AS NRF_WK_OF_MONTH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Couple of issues I see here are&lt;/P&gt;&lt;P&gt;1. SubField retuns a string. Convert it to Number.&lt;/P&gt;&lt;P&gt;2. As per QlikView help,&lt;EM&gt; If several &lt;SPAN style="font-weight: bold;"&gt;subfield&lt;/SPAN&gt; functions are used in the same &lt;SPAN style="font-weight: bold;"&gt;load&lt;/SPAN&gt; statement, the Cartesian product of all combinations will be generated. &lt;/EM&gt;If this is causing the issue, do the second SubField in the Load on Load statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And provide your sample file name/file name format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KKR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 18:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-by-two-fields/m-p/882810#M655113</guid>
      <dc:creator />
      <dc:date>2015-07-15T18:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Join by two fields</title>
      <link>https://community.qlik.com/t5/QlikView/Join-by-two-fields/m-p/882811#M655114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Typical filename :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NMK #5 JULY WK 2.xls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 19:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Join-by-two-fields/m-p/882811#M655114</guid>
      <dc:creator>vchuprina</dc:creator>
      <dc:date>2015-07-15T19:53:12Z</dc:date>
    </item>
  </channel>
</rss>

