<?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: not understanding code in Qlikview in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146837#M903284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In else criteria if file exist then New records fetch from database and concatenated with existing file records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jun 2016 11:08:20 GMT</pubDate>
    <dc:creator>PrashantSangle</dc:creator>
    <dc:date>2016-06-30T11:08:20Z</dc:date>
    <item>
      <title>not understanding code in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146832#M903279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;the following script (starting from under the dotted line) has stopped loading data into the 'Member_Details.qvd' file so i am trying to understand the script to then find the issue.&amp;nbsp; This is run &lt;/SPAN&gt;on the&lt;SPAN style="font-size: 10pt;"&gt; first day of ever month and is supposed to keep history and concatenate last months transactions to the file.&amp;nbsp; I don't need to understand the joins or tables.&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;I am unfamiliar with a few areas within the script so any assistance in understanding the following questions would be appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;i get the script begins at the first SQL highlighted in blue (which links to the database specified in the main table).&amp;nbsp; My understanding is from here it then loads the data into the MonthlySnapshots_Detail: temp table (highlighted in pink).&amp;nbsp; I don't understand when the "STORE MonthlySnapshots_Detail INTO $(varFileName_UAT);&amp;nbsp; comes into play?&amp;nbsp; Does this come into play at the end of the first sql or after the load?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I also don't understand what "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;where m.validfrom &amp;lt;= convert(datetime,convert(char(12),DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0)),103),103) +1 ;"&lt;/SPAN&gt; means?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;.........................................................&lt;/P&gt;&lt;P&gt;//Set qvd fully qualified name&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Let varFileName_UAT= '$(varDirectory_UAT)'&amp;amp;&amp;nbsp; 'Member_Details.qvd';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Check if qvd already exists&lt;/P&gt;&lt;P&gt;if isnull(filetime('$(varFileName)')) then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//file doesnt exists - save first snapshot&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff00ff;"&gt;MonthlySnapshots_Detail:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DateUpdated,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AccountName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AccountNumber&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ccff;"&gt; SQL&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select getdate() as DateUpdated,&lt;/P&gt;&lt;P&gt;&amp;nbsp; fa.name as AccountName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; fa.accountnumber as AccountNumber&lt;/P&gt;&lt;P&gt;&amp;nbsp; from filteredaccount fa&amp;nbsp; join&lt;/P&gt;&lt;P&gt;&amp;nbsp; membership m&amp;nbsp; on fa.accountid = m.snap_accountid &lt;/P&gt;&lt;P&gt;&amp;nbsp; and m.from &amp;lt;= convert(datetime,convert(char(12),DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0)),103),103)+1&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;//Store in QVD File&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; STORE MonthlySnapshots_Detail INTO $(varFileName_UAT);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;//else//&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;MonthlySnapshots_Detail:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; DateUpdated,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AccountName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AccountNumber&lt;SPAN style="font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL&lt;/P&gt;&lt;P&gt;&amp;nbsp; select distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp; getdate() as DateUpdated,&lt;/P&gt;&lt;P&gt;&amp;nbsp; fa.name as AccountName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; fa.accountnumber as AccountNumber&lt;/P&gt;&lt;P&gt;&amp;nbsp; from product&lt;/P&gt;&lt;P&gt;&amp;nbsp; left join subproduct on subproduct. productid = product.productid&lt;/P&gt;&lt;P&gt;&amp;nbsp; where m.validfrom &amp;lt;= convert(datetime,convert(char(12),DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0)),103),103) +1 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Concatenate (MonthlySnapshots_Detail)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; DateUpdated,&lt;/P&gt;&lt;P&gt;&amp;nbsp; FiscalYear,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AccountName,&lt;/P&gt;&lt;P&gt;&amp;nbsp; AccountNumber&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; from $(varFileName) (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where SnapshotDate &amp;lt;=date($(varMonthEndNum),'DD/MM/YYYY');&lt;/P&gt;&lt;P&gt;//Store in QVD File&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;STORE MonthlySnapshot INTO $(varFileName_UAT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146832#M903279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: not understanding code in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146833#M903280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;above code is incremental qvd generator code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1: below code represent presending load. It will load DatUpdated, AccountName and AccountNumeber from SQL query output.&lt;/P&gt;&lt;P&gt;Store command work when below enitre script executed. i.e. both Load and SQL&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; DateUpdated,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AccountName,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AccountNumber&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #00ccff;"&gt;SQL&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; select getdate() as DateUpdated,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; fa.name as AccountName,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; fa.accountnumber as AccountNumber&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; from filteredaccount fa&amp;nbsp; join&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; membership m&amp;nbsp; on fa.accountid = m.snap_accountid&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; and m.from &amp;lt;= convert(datetime,convert(char(12),DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0)),103),103)+1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P&gt;2:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where m.validfrom &amp;lt;= convert(datetime,convert(char(12),DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0)),103),103) +1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;What you dont understand in above where clause&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DateAdd() is SQL server function for add date&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Convert() is use to convert datatype of column,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;DateDiff() is use to calculate date difference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;103 is used to format date i.e. DD/MM/YYYY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 10:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146833#M903280</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-06-30T10:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: not understanding code in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146834#M903281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store command is used to save the data extracted from the source into the qvd file.&lt;/P&gt;&lt;P&gt;I suppose the error in loading is due to error in the store command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE MonthlySnapshots_Detail INTO $(varFileName_UAT);&lt;/P&gt;&lt;P&gt;The above store command is referring MonthlySnapshots_Detail table to be stored into a file which is defined in the varFileName_UAT variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Let varFileName_UAT= '$(varDirectory_UAT)'&amp;amp;&amp;nbsp; 'Member_Details.qvd';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;In the script I do not see the varDirectory_UAT defined so please write the below code at the start of the script &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Let varDirectory_UAT=&amp;lt;&amp;lt;Give the file location where the the qvd must be saved&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Eg: Let varDirectory_UAT= C:/Mydocs/Data/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 10:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146834#M903281</guid>
      <dc:creator>anushree1</dc:creator>
      <dc:date>2016-06-30T10:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: not understanding code in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146835#M903282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that you want to understand?&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff00ff;"&gt;MonthlySnapshots_Detail: // there is set table name and then load in this table 3 lines. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; DateUpdated, // First line&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AccountName, //second&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AccountNumber&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;; //3-th line&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; /// We obtain data from the SQL request&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #00ccff;"&gt;SQL // all this as described below is performed on the SQL server side&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; select getdate() as DateUpdated,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; fa.name as AccountName,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; fa.accountnumber as AccountNumber&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; from filteredaccount fa&amp;nbsp; join&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; membership m&amp;nbsp; on fa.accountid = m.snap_accountid &lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; and m.from &amp;lt;= convert(datetime,convert(char(12),DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0)),103),103)+1&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 10:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146835#M903282</guid>
      <dc:creator>korsikov</dc:creator>
      <dc:date>2016-06-30T10:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: not understanding code in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146836#M903283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Max.&amp;nbsp; got it.&amp;nbsp; it runs the sql and load the results in both the table and the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Member_Details.qvd&lt;/SPAN&gt;.&amp;nbsp; Next two &lt;SPAN style="font-size: 10pt;"&gt; questions please........&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I don't understand the relevance after the "Else".&amp;nbsp; i thought one would use "else" if the first criteria was not met but the sql after "else" seems to be identical to the first one?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Second question please-&amp;nbsp; I understand that the second SQL runs and then loads any results-data into &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;MonthlySnapshots_Detail:&lt;/SPAN&gt; table.&amp;nbsp; Then what happens ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;//else//&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;MonthlySnapshots_Detail:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; DateUpdated,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AccountName,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AccountNumber&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; select distinct&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; getdate() as DateUpdated,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; fa.name as AccountName,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; fa.accountnumber as AccountNumber&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; from product&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; left join subproduct on subproduct. productid = product.productid&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; where m.validfrom &amp;lt;= convert(datetime,convert(char(12),DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,GETDATE()),0)),103),103) +1 ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Concatenate (MonthlySnapshots_Detail)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Load&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; DateUpdated,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; FiscalYear,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; Month,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AccountName,&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; AccountNumber&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;from $(varFileName) (qvd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; where SnapshotDate &amp;lt;=date($(varMonthEndNum),'DD/MM/YYYY');&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;//Store in QVD File&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;STORE MonthlySnapshot INTO $(varFileName_UAT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; end if&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 10:59:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146836#M903283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-30T10:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: not understanding code in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146837#M903284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In else criteria if file exist then New records fetch from database and concatenated with existing file records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 11:08:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146837#M903284</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-06-30T11:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: not understanding code in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146838#M903285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank-you Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 11:19:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146838#M903285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-30T11:19:13Z</dc:date>
    </item>
    <item>
      <title>Re: not understanding code in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146839#M903286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 11:20:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146839#M903286</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2016-06-30T11:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: not understanding code in Qlikview</title>
      <link>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146840#M903287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;do you have any examples of code whereby a file is generated to store into a qvd file each month and then the data from this file adds to a qvw table each month?&amp;nbsp; I have been shown one but I need something a little more straight forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Laura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jul 2016 09:06:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/not-understanding-code-in-Qlikview/m-p/1146840#M903287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-05T09:06:31Z</dc:date>
    </item>
  </channel>
</rss>

