<?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 Value from qvd-table in IF..ENDIF clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-from-qvd-table-in-IF-ENDIF-clause/m-p/1888291#M1217168</link>
    <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;I'm saving today's date in a qvd table as information for the last data update by using following function.&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [LastDay];&lt;BR /&gt;Concatenate(Dashboard_Risk_Actual3) LOAD&lt;BR /&gt;Today() as LastDay&lt;BR /&gt;AUTOGENERATE(1);&lt;BR /&gt;STORE Dashboard_Risk_Actual3 INTO Dashboard_Risk_Actual3.qvd (qvd);&lt;BR /&gt;DROP table Dashboard_Risk_Actual3;&lt;/P&gt;
&lt;P&gt;Now I want to use that date in an IF..ENDIF clause like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF LastDay&amp;lt;&amp;gt;Today() THEN .......&lt;/P&gt;
&lt;P&gt;How can I get the value from the qvd as paramter for my IF..ENDIF clause.&lt;/P&gt;
&lt;P&gt;I hope anybody is having an idea for that.&lt;/P&gt;
&lt;P&gt;Best regards Hans-Peter&lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2022 16:39:17 GMT</pubDate>
    <dc:creator>HPW</dc:creator>
    <dc:date>2022-02-02T16:39:17Z</dc:date>
    <item>
      <title>Value from qvd-table in IF..ENDIF clause</title>
      <link>https://community.qlik.com/t5/QlikView/Value-from-qvd-table-in-IF-ENDIF-clause/m-p/1888291#M1217168</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;I'm saving today's date in a qvd table as information for the last data update by using following function.&lt;/P&gt;
&lt;P&gt;LOAD * INLINE [LastDay];&lt;BR /&gt;Concatenate(Dashboard_Risk_Actual3) LOAD&lt;BR /&gt;Today() as LastDay&lt;BR /&gt;AUTOGENERATE(1);&lt;BR /&gt;STORE Dashboard_Risk_Actual3 INTO Dashboard_Risk_Actual3.qvd (qvd);&lt;BR /&gt;DROP table Dashboard_Risk_Actual3;&lt;/P&gt;
&lt;P&gt;Now I want to use that date in an IF..ENDIF clause like&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF LastDay&amp;lt;&amp;gt;Today() THEN .......&lt;/P&gt;
&lt;P&gt;How can I get the value from the qvd as paramter for my IF..ENDIF clause.&lt;/P&gt;
&lt;P&gt;I hope anybody is having an idea for that.&lt;/P&gt;
&lt;P&gt;Best regards Hans-Peter&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-from-qvd-table-in-IF-ENDIF-clause/m-p/1888291#M1217168</guid>
      <dc:creator>HPW</dc:creator>
      <dc:date>2022-02-02T16:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Value from qvd-table in IF..ENDIF clause</title>
      <link>https://community.qlik.com/t5/QlikView/Value-from-qvd-table-in-IF-ENDIF-clause/m-p/1888703#M1217178</link>
      <description>&lt;P&gt;To get a value from a qvd you needs to load the qvd with/without certain where-clauses and/or any transformation like aggregations and then picking your wanted value per peek() or fieldvalue() or lookup(). If your load returned just one record or an easy to predicting structure it's not difficult to fetch the wanted value - if not it could become complicated ...&lt;/P&gt;
&lt;P&gt;Your scenario looked as if it could be solved easier just by assigning the last run-time or the max. value of a date/key to a variable, like:&lt;/P&gt;
&lt;P&gt;if vLastRun &amp;lt; today() then&lt;BR /&gt;&amp;nbsp; &amp;nbsp;let vLastRun = today();&lt;BR /&gt;&amp;nbsp; &amp;nbsp;... further statements ...&lt;BR /&gt;end if&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 13:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-from-qvd-table-in-IF-ENDIF-clause/m-p/1888703#M1217178</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-02-03T13:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Value from qvd-table in IF..ENDIF clause</title>
      <link>https://community.qlik.com/t5/QlikView/Value-from-qvd-table-in-IF-ENDIF-clause/m-p/1888748#M1217185</link>
      <description>&lt;P&gt;Thanks for such an easy solution. I was not aware that values of variables are kept in the qvw.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 15:08:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-from-qvd-table-in-IF-ENDIF-clause/m-p/1888748#M1217185</guid>
      <dc:creator>HPW</dc:creator>
      <dc:date>2022-02-03T15:08:55Z</dc:date>
    </item>
  </channel>
</rss>

