<?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 Script for a dashboard with history log in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-for-a-dashboard-with-history-log/m-p/890863#M655906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikviewers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a script that loads an extract of active trades and 6 reports with reporting feedback regarding those trades. The script works fine and gives me the information that I need for my dashboard, although there may be ways to make the load script more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I have a dashboard that works, I would like to extend the dashboard to a dashboard that also displays the historic data. Currently, the script loads the most recent files, resulting in an overview of the current status of the trades. However, now I want to graph historic data, displaying the development of certain trade characteristics over time. That means I would want to load the oldest files, until the newest files. The data can be displayed in one table, but then each load should have a report date time stamp, so that I can distinguish between reporting dates. I think I would need to write a loop to do such a thing, but I am not sure where to start. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can upload my script if necessary but it is quite long, so perhaps it is easier to explain the concept of my script by summary:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load filedates //loading all filedates from the filenames on the server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//select the most recent filedate for which all files are available &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;incremental load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from $(vFile)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do this for all files, and join them to make one large table that displays data from all reports for each position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have one table that displays all the data for the latest report date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would have to write a loop that runs this script until all files available have been loaded, but for every date for which the script has loaded the data, it should also include a timestamp so that I can distinguish between current data and historic data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the concept is clear enough, I could do with just a little help of how I should get started on a loop that would serve my purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2015 10:15:35 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-06-15T10:15:35Z</dc:date>
    <item>
      <title>Script for a dashboard with history log</title>
      <link>https://community.qlik.com/t5/QlikView/Script-for-a-dashboard-with-history-log/m-p/890863#M655906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Qlikviewers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a script that loads an extract of active trades and 6 reports with reporting feedback regarding those trades. The script works fine and gives me the information that I need for my dashboard, although there may be ways to make the load script more efficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I have a dashboard that works, I would like to extend the dashboard to a dashboard that also displays the historic data. Currently, the script loads the most recent files, resulting in an overview of the current status of the trades. However, now I want to graph historic data, displaying the development of certain trade characteristics over time. That means I would want to load the oldest files, until the newest files. The data can be displayed in one table, but then each load should have a report date time stamp, so that I can distinguish between reporting dates. I think I would need to write a loop to do such a thing, but I am not sure where to start. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can upload my script if necessary but it is quite long, so perhaps it is easier to explain the concept of my script by summary:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load filedates //loading all filedates from the filenames on the server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//select the most recent filedate for which all files are available &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;incremental load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load *&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from $(vFile)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do this for all files, and join them to make one large table that displays data from all reports for each position&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have one table that displays all the data for the latest report date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would have to write a loop that runs this script until all files available have been loaded, but for every date for which the script has loaded the data, it should also include a timestamp so that I can distinguish between current data and historic data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope the concept is clear enough, I could do with just a little help of how I should get started on a loop that would serve my purpose.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 10:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-for-a-dashboard-with-history-log/m-p/890863#M655906</guid>
      <dc:creator />
      <dc:date>2015-06-15T10:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Script for a dashboard with history log</title>
      <link>https://community.qlik.com/t5/QlikView/Script-for-a-dashboard-with-history-log/m-p/890864#M655907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be something like this, adjust to your needs (*.xls, *.qvd, and where the date is in your filename)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set vConcatenate = ;&lt;/P&gt;&lt;P&gt;For each vFile in FileList('.\*.txt')&lt;/P&gt;&lt;P&gt;let vDate=mid('$(vFile)',5,8)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:&lt;/P&gt;&lt;P&gt;$(vConcatenate)&lt;/P&gt;&lt;P&gt;LOAD Field1 as FIELD1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Field2 as FIELD2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '$(vDate)' as DateStamp&lt;/P&gt;&lt;P&gt;FROM [$(vFile)];&lt;/P&gt;&lt;P&gt;Set vConcatenate = Concatenate ;&lt;/P&gt;&lt;P&gt;Next vFile&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 10:39:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-for-a-dashboard-with-history-log/m-p/890864#M655907</guid>
      <dc:creator>stigchel</dc:creator>
      <dc:date>2015-06-15T10:39:31Z</dc:date>
    </item>
  </channel>
</rss>

