<?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 Any solutions on using Where statements based calculated/formatted fields (ie Date)? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Any-solutions-on-using-Where-statements-based-calculated/m-p/1526156#M748198</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a load statement with a calculated/formatted field, however when adding a where statement the field tells me that the calculated field is unknown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you guys have any work around? It is part of an incremental reload. - Because both Max_Date vs Where Date cannot be compared, I'm getting all data instead of the one row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;Incremental:&lt;BR /&gt;LOAD Client,&lt;BR /&gt;Article,&lt;BR /&gt;Date&lt;BR /&gt;FROM&lt;BR /&gt;[Source_QVD]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;MaxDate:&lt;BR /&gt;LOAD&lt;BR /&gt;max(Date(Date,'DD-MM-YYYY')) as Max_Date&lt;BR /&gt;Resident Incremental;&lt;/P&gt;&lt;P&gt;LET Last_updated_date = peek('Max_Date',-1,'Last_updated_date');&lt;/P&gt;&lt;P&gt;Concatenate (Incremental)&lt;BR /&gt;LOAD Client,&lt;BR /&gt;&lt;SPAN&gt;Article&lt;/SPAN&gt;,&lt;BR /&gt;Date&lt;BR /&gt;FROM&lt;BR /&gt;[SOURCE_Excel]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;BR /&gt;Where Date &amp;gt; $(Last_updated_date);&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>mrichman</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Any solutions on using Where statements based calculated/formatted fields (ie Date)?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-solutions-on-using-Where-statements-based-calculated/m-p/1526156#M748198</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a load statement with a calculated/formatted field, however when adding a where statement the field tells me that the calculated field is unknown.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you guys have any work around? It is part of an incremental reload. - Because both Max_Date vs Where Date cannot be compared, I'm getting all data instead of the one row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.e.&lt;/P&gt;&lt;P&gt;Incremental:&lt;BR /&gt;LOAD Client,&lt;BR /&gt;Article,&lt;BR /&gt;Date&lt;BR /&gt;FROM&lt;BR /&gt;[Source_QVD]&lt;BR /&gt;(qvd);&lt;/P&gt;&lt;P&gt;MaxDate:&lt;BR /&gt;LOAD&lt;BR /&gt;max(Date(Date,'DD-MM-YYYY')) as Max_Date&lt;BR /&gt;Resident Incremental;&lt;/P&gt;&lt;P&gt;LET Last_updated_date = peek('Max_Date',-1,'Last_updated_date');&lt;/P&gt;&lt;P&gt;Concatenate (Incremental)&lt;BR /&gt;LOAD Client,&lt;BR /&gt;&lt;SPAN&gt;Article&lt;/SPAN&gt;,&lt;BR /&gt;Date&lt;BR /&gt;FROM&lt;BR /&gt;[SOURCE_Excel]&lt;BR /&gt;(ooxml, embedded labels, table is Sheet1)&lt;BR /&gt;Where Date &amp;gt; $(Last_updated_date);&lt;/P&gt;&lt;P&gt;Thanks in advance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-solutions-on-using-Where-statements-based-calculated/m-p/1526156#M748198</guid>
      <dc:creator>mrichman</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Any solutions on using Where statements based calculated/formatted fields (ie Date)?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-solutions-on-using-Where-statements-based-calculated/m-p/1526169#M748199</link>
      <description>&lt;P&gt;Try it with:&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;MaxDate: LOAD max(Date) as Max_Date Resident Incremental;&lt;/P&gt;&lt;P&gt;LET Last_updated_date = peek('Max_Date',-1,&lt;STRONG&gt;'MaxDate'&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt;Where &lt;STRONG&gt;num(&lt;/STRONG&gt;Date&lt;STRONG&gt;)&lt;/STRONG&gt; &amp;gt; $(Last_updated_date);&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 08:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-solutions-on-using-Where-statements-based-calculated/m-p/1526169#M748199</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-01-04T08:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Any solutions on using Where statements based calculated/formatted fields (ie Date)?</title>
      <link>https://community.qlik.com/t5/QlikView/Any-solutions-on-using-Where-statements-based-calculated/m-p/1526852#M748200</link>
      <description>Thanks, it worked!</description>
      <pubDate>Mon, 07 Jan 2019 08:18:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Any-solutions-on-using-Where-statements-based-calculated/m-p/1526852#M748200</guid>
      <dc:creator>mrichman</dc:creator>
      <dc:date>2019-01-07T08:18:04Z</dc:date>
    </item>
  </channel>
</rss>

