<?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 Conditional Creation of QVD's in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-Creation-of-QVD-s/m-p/597380#M221232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to qlikview and I am trying to create QVD's based upon conditional evaluation of a field. For example I am having a field called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run Time&lt;/P&gt;&lt;P&gt;02/02/2014 11:00:00 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I want to make a qvd based upon the time stamp. So, I am writing something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(TimeStamp([Run Time], 'hh:mm:ss' = '11:00:00') then&lt;/P&gt;&lt;P&gt;Store abc into 11AM.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;if(TimeStamp([Run Time], 'hh:mm:ss' = '12:00:00') then&lt;/P&gt;&lt;P&gt;Store abc into 12PM.qvd;&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me if I am writing this correctly?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Feb 2014 17:12:10 GMT</pubDate>
    <dc:creator>don_qlikview</dc:creator>
    <dc:date>2014-02-01T17:12:10Z</dc:date>
    <item>
      <title>Conditional Creation of QVD's</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Creation-of-QVD-s/m-p/597380#M221232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to qlikview and I am trying to create QVD's based upon conditional evaluation of a field. For example I am having a field called&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Run Time&lt;/P&gt;&lt;P&gt;02/02/2014 11:00:00 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I want to make a qvd based upon the time stamp. So, I am writing something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(TimeStamp([Run Time], 'hh:mm:ss' = '11:00:00') then&lt;/P&gt;&lt;P&gt;Store abc into 11AM.qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;if(TimeStamp([Run Time], 'hh:mm:ss' = '12:00:00') then&lt;/P&gt;&lt;P&gt;Store abc into 12PM.qvd;&lt;/P&gt;&lt;P&gt;end if;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me if I am writing this correctly?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Don&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 17:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Creation-of-QVD-s/m-p/597380#M221232</guid>
      <dc:creator>don_qlikview</dc:creator>
      <dc:date>2014-02-01T17:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Creation of QVD's</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Creation-of-QVD-s/m-p/597381#M221233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Don&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of an IF statement how about setting a variable to the value of the Hour and using that to define the qvd name ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt; // Instead of &lt;EM&gt;'02/02/2014 11:00:00 AM' &lt;/EM&gt; use your field name {&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Run Time&lt;/SPAN&gt;]&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;let &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Run Time&lt;/SPAN&gt;= Hour(date#('02/02/2014 11:00:00 AM' , 'DD/MM/YY hh:mm:ss TT') ) ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;// the trace function displays the value of variable &lt;EM&gt;vHour when reloading&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;trace $(vHour) ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;// &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;// I prefer 24 hour clock hour, so that is what this is using and the value of &lt;EM&gt;vQVD &lt;/EM&gt;is 11.qvd&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;let vQVD = '$(vHour)' &amp;amp; '.qvd' ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;EM&gt;// the trace function displays the value of variable &lt;EM&gt;vQVD&lt;/EM&gt; &lt;EM&gt;when reloading&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;EM&gt;trace $(vQVD) ;&lt;/EM&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;// this stores resident table abc into a qvd called 11.qvd&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;store abc into &lt;EM&gt;$(vQVD)&lt;/EM&gt; [qvd] ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 17:39:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Creation-of-QVD-s/m-p/597381#M221233</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-01T17:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Creation of QVD's</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Creation-of-QVD-s/m-p/597382#M221234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bill's suggestion is a good one, but first you must convert your field [Run Time] into a variable. Fields are not directly accessible from a position outside a Load statement. One way to do this is to use the Peek() function. If you want to use the time stamp from the last record, you should write&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vTimeStamp = Peek('Run Time',-1,'TableName') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vHour = Hour(Peek('Run Time',-1,'TableName')) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then use the variable in your Store statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 17:45:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Creation-of-QVD-s/m-p/597382#M221234</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-01T17:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Creation of QVD's</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Creation-of-QVD-s/m-p/597383#M221235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bill. This Worked!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 18:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Creation-of-QVD-s/m-p/597383#M221235</guid>
      <dc:creator>don_qlikview</dc:creator>
      <dc:date>2014-02-01T18:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional Creation of QVD's</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-Creation-of-QVD-s/m-p/597384#M221236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Henric!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Feb 2014 18:33:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-Creation-of-QVD-s/m-p/597384#M221236</guid>
      <dc:creator>don_qlikview</dc:creator>
      <dc:date>2014-02-01T18:33:46Z</dc:date>
    </item>
  </channel>
</rss>

