<?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 error with same column name from QVD using Where Clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680518#M450043</link>
    <description>&lt;P&gt;So i am trying to do incremental load weekly.&lt;/P&gt;&lt;P&gt;Weektoday:&amp;nbsp;&amp;nbsp;Year(today()) &amp;amp; Num(Week(today()),'00') (in this example: say 202009 )&lt;/P&gt;&lt;P&gt;Max week number from table1:&amp;nbsp; Year(Max(Date)) &amp;amp; Num(Week(Max(Date)),'00')&lt;/P&gt;&lt;P&gt;So, load the data from table1 where yearweek is not equal to current yearweek.&lt;/P&gt;&lt;P&gt;In this example, i have only one date so Year(Date) might work. But if i do incremental load, i need year(max(date))&lt;/P&gt;</description>
    <pubDate>Fri, 28 Feb 2020 17:30:26 GMT</pubDate>
    <dc:creator>poluvidyasagar</dc:creator>
    <dc:date>2020-02-28T17:30:26Z</dc:date>
    <item>
      <title>Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680468#M450033</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2 qvd files with date column in it and trying to use the following logic for my incremental load problem. I am trying to load the data from both the qvds with where clause like below:&lt;/P&gt;&lt;P&gt;So I begin with setting my current todaysweek to WeekToday variable&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;EM&gt;LET WeekToday= Year(today()) &amp;amp; Num(Week(today()),'00')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Now I load the data from Table1 like below.&amp;nbsp; Trying to load anything not equal to current week data. The first table works fine.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Table1:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD Date, A, B&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;FROM [$(vL.QVDFolder)Table1.qvd](qvd)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Where Year(Max(Date)) &amp;amp; Num(Week(Max(Date)),'00') &amp;lt;&amp;gt; '$(WeekToday)';&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Now I am trying to load table 2 just like above from qvd with the same logic. But this time Table2&amp;nbsp; has Date column and 2 different columns C, D. Both tables are entirely different so I dont want to concatenate and also I do not want to use qualify statement.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;LOAD&amp;nbsp;Date, C,D&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;FROM [$(vL.QVDFolder)Table2.qvd](qvd)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;EM&gt;&lt;STRONG&gt;where Year(Max(Date)) &amp;amp; Num(Week(Max(Date)),'00') &amp;lt;&amp;gt; '$(WeekToday)';&lt;/STRONG&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;This time I am getting an error saying :&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"Unknown LOAD statment error&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;LOAD Date, C,D&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;FROM [..\2.QVD\ManageLocationHistory.qvd](qvd)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;where Year(Max(Date)) &amp;amp; Num(Week(Max(Date)),'00') &amp;lt;&amp;gt; '$(WeekToday)'"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Is it a problem to load data from 2 qvds with same date column field and use them as where clause.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Vidya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680468#M450033</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2024-11-16T01:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680475#M450034</link>
      <description>&lt;P&gt;What happens when you only Load Table2 alone... does it go through then without any issues?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 16:22:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680475#M450034</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-28T16:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680484#M450037</link>
      <description>&lt;P&gt;yes, it loads just fine.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 16:35:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680484#M450037</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2020-02-28T16:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680487#M450039</link>
      <description>&lt;P&gt;I don't see any issue with what you have shared... is there more to it then shared? Can you may be share the logfile to see what else might be going on?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 16:37:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680487#M450039</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-28T16:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680503#M450040</link>
      <description>&lt;P&gt;Individual tables loaded correctly before and now they are not loading.&lt;/P&gt;&lt;P&gt;I have attached test qlikview file. can you please help me figure this out.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680503#M450040</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2020-02-28T17:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680508#M450041</link>
      <description>&lt;P&gt;I didn't see this earlier, but you are doing Max(Year) in your where clause... can you explain what exactly are you trying to do?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680508#M450041</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-28T17:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680517#M450042</link>
      <description>&lt;P&gt;May be you just want this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;LET WeekToday=Year(today()) &amp;amp; Num(Week(today()),'00');

Table1:
LOAD *
FROM [$(vL.QVDFolder)Table1.qvd](qvd)
Where Year(Date) &amp;amp; Num(Week(Date),'00') &amp;lt;&amp;gt; '$(WeekToday)';

Table2:
Load *
FROM [$(vL.QVDFolder)Table2.qvd](qvd)
Where Year(Date) &amp;amp; Num(Week(Date),'00') &amp;lt;&amp;gt; '$(WeekToday)';&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680517#M450042</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-28T17:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680518#M450043</link>
      <description>&lt;P&gt;So i am trying to do incremental load weekly.&lt;/P&gt;&lt;P&gt;Weektoday:&amp;nbsp;&amp;nbsp;Year(today()) &amp;amp; Num(Week(today()),'00') (in this example: say 202009 )&lt;/P&gt;&lt;P&gt;Max week number from table1:&amp;nbsp; Year(Max(Date)) &amp;amp; Num(Week(Max(Date)),'00')&lt;/P&gt;&lt;P&gt;So, load the data from table1 where yearweek is not equal to current yearweek.&lt;/P&gt;&lt;P&gt;In this example, i have only one date so Year(Date) might work. But if i do incremental load, i need year(max(date))&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680518#M450043</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2020-02-28T17:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680520#M450044</link>
      <description>&lt;P&gt;From the qvd, you want to load all the rows which are not associated with the most recent period, right? I don't think you need to add Max()... you will do a row by row comparison and will exclude anything which is not current period related... while loading everything else.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:36:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680520#M450044</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-02-28T17:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680523#M450045</link>
      <description>&lt;P&gt;Year(Date) will work only if i have one date. But i have more dates because of incremental load. This is why i am using&amp;nbsp; year(max(date))&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680523#M450045</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2020-02-28T17:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680526#M450046</link>
      <description>&lt;P&gt;yes you are right..I do not need Max since it is a row by row comparison.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:43:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680526#M450046</guid>
      <dc:creator>poluvidyasagar</dc:creator>
      <dc:date>2020-02-28T17:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loading error with same column name from QVD using Where Clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680529#M450048</link>
      <description>&lt;P&gt;Yes Year(Date) will only work if you have one value. In a chart object you will normally use max() because you are comparing multiple values, but when loading a qvd you are comparing one row at the time. So when reading a qvd without using GROUP BY you should use Year(Date) not year(max(Date)).&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 17:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-error-with-same-column-name-from-QVD-using-Where-Clause/m-p/1680529#M450048</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2020-02-28T17:47:49Z</dc:date>
    </item>
  </channel>
</rss>

