<?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: Generate Multiple QVD's in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generate-Multiple-QVD-s/m-p/111184#M601034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I understand your variable YearMonth will have values 1709, 1809,..&lt;/P&gt;&lt;P&gt;So you advance year by year for september&lt;/P&gt;&lt;P&gt;do you have already data from sept 2018? If yes I would expect that 2 qvds would have been created (one with 1709 and one with 1809).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; your if Statement seems to have incorrect brackets (I see red underline brackets when i copy your expression&lt;/P&gt;&lt;P&gt;this is without Syntax error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;(if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())&amp;lt;5, (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),2)-1)&amp;amp;09, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())&amp;gt;=5,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),2))&amp;amp;09-1709)/100 )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2018 10:26:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-26T10:26:21Z</dc:date>
    <item>
      <title>Generate Multiple QVD's</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Multiple-QVD-s/m-p/111183#M601033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to generate a separate QVD for each value of k (as can bee seen below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following code but the store command I am using doesn't seem to store in separate QVD's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;for&amp;nbsp; k = 0 to ((if(month(today())&amp;lt;5, (right(year(today()),2)-1)&amp;amp;09, if(month(today())&amp;gt;=5,right(year(today()),2))&amp;amp;09-1709))/100);&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;let YearMonth = 1709 + $(k)*100;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;let FinJaar = left('$(YearMonth)',2)&amp;amp;(left('$(YearMonth)',2)+1);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;CurrentTemp:&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;load *&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;FROM&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;D&gt;&lt;/D&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;(fix, codepage is 1252);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;STORE&amp;nbsp; CurrentTemp into "D:\DEV\Anri\TOETS\Takbuffer$(FinJaar).qvd" (QVD);&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;next k&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 10:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Multiple-QVD-s/m-p/111183#M601033</guid>
      <dc:creator>anriretief</dc:creator>
      <dc:date>2018-09-26T10:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Multiple QVD's</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Multiple-QVD-s/m-p/111184#M601034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when I understand your variable YearMonth will have values 1709, 1809,..&lt;/P&gt;&lt;P&gt;So you advance year by year for september&lt;/P&gt;&lt;P&gt;do you have already data from sept 2018? If yes I would expect that 2 qvds would have been created (one with 1709 and one with 1809).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; your if Statement seems to have incorrect brackets (I see red underline brackets when i copy your expression&lt;/P&gt;&lt;P&gt;this is without Syntax error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;(if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())&amp;lt;5, (&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),2)-1)&amp;amp;09, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;())&amp;gt;=5,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;right&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;()),2))&amp;amp;09-1709)/100 )&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 10:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Multiple-QVD-s/m-p/111184#M601034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-26T10:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Generate Multiple QVD's</title>
      <link>https://community.qlik.com/t5/QlikView/Generate-Multiple-QVD-s/m-p/111185#M601035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The detection of causes for bad data/behavior can be advanced&lt;EM&gt; a lot&lt;/EM&gt; if you simplify your script code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I'm not mistaken, you can replace the two LET statements in the FOR loop by something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET FinJaar = 1718 + (101 * $(k)); // YearMonth not used in the example&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2018 11:26:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generate-Multiple-QVD-s/m-p/111185#M601035</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2018-09-26T11:26:20Z</dc:date>
    </item>
  </channel>
</rss>

