<?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 Google Analytics API Incremental data update and Dynamic Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Google-Analytics-API-Incremental-data-update-and-Dynamic-Date/m-p/293252#M108846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for a way to have Qlikview do an incremental update of its data coming from Google Analytics.&lt;/P&gt;&lt;P&gt;Currently, when I want to pull in new data, I need to do a refresh of the entire data table. For one site, that's ok, but I expand this to quite a few more, and I don't want Qlikview to spend all day pulling in the entire datasets from Google Analytics (ok, that may be dramatized a bit but you get my point ..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I was wondering if there is a good way to dynamically change the date range. I would like to open the QV dashboard weekly, hit the "Reload" button, and have QV update the data until the date of the day before without having to change the scripts' "end-date" over and over again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any support would be greatly appreciated !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Dec 2011 09:09:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-12-12T09:09:10Z</dc:date>
    <item>
      <title>Google Analytics API Incremental data update and Dynamic Date</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Analytics-API-Incremental-data-update-and-Dynamic-Date/m-p/293252#M108846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for a way to have Qlikview do an incremental update of its data coming from Google Analytics.&lt;/P&gt;&lt;P&gt;Currently, when I want to pull in new data, I need to do a refresh of the entire data table. For one site, that's ok, but I expand this to quite a few more, and I don't want Qlikview to spend all day pulling in the entire datasets from Google Analytics (ok, that may be dramatized a bit but you get my point ..)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I was wondering if there is a good way to dynamically change the date range. I would like to open the QV dashboard weekly, hit the "Reload" button, and have QV update the data until the date of the day before without having to change the scripts' "end-date" over and over again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any support would be greatly appreciated !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Dec 2011 09:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Analytics-API-Incremental-data-update-and-Dynamic-Date/m-p/293252#M108846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-12T09:09:10Z</dc:date>
    </item>
    <item>
      <title>Google Analytics API Incremental data update and Dynamic Date</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Analytics-API-Incremental-data-update-and-Dynamic-Date/m-p/293253#M108847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No answers just yet -- is it because it's impossible to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jan 2012 09:57:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Analytics-API-Incremental-data-update-and-Dynamic-Date/m-p/293253#M108847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-03T09:57:12Z</dc:date>
    </item>
    <item>
      <title>Google Analytics API Incremental data update and Dynamic Date</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Analytics-API-Incremental-data-update-and-Dynamic-Date/m-p/293254#M108848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cristoph,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why don't you make your code in the script be more dynamic? I mean, you can make the start and end dates be calculated each time the script runs (the qv document is reloaded) and calculate them.&lt;/P&gt;&lt;P&gt;This way, the document would only retrieve from Google the data of the last week or day or month, and the "historical" data you can get it from your own QVD files, populated each time the qv document is reloaded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET gDateStart= date(today(),'YYYY-MM-DD');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;instead of the hardcoded date:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET gDateStart= '2012-02-11';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have the dates hardcoded in the script?&lt;/P&gt;&lt;P&gt;Have you ever heard about incremental reloads in QlikView using QVD files? If not, check the PDF within this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://bit.ly/wbeGEx"&gt;http://bit.ly/wbeGEx&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Borja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Feb 2012 18:05:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Analytics-API-Incremental-data-update-and-Dynamic-Date/m-p/293254#M108848</guid>
      <dc:creator />
      <dc:date>2012-02-11T18:05:10Z</dc:date>
    </item>
    <item>
      <title>Google Analytics API Incremental data update and Dynamic Date</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Analytics-API-Incremental-data-update-and-Dynamic-Date/m-p/293255#M108849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx a lot bhs -- I have indeed done it on the mean time like this (forgot to mention it on the forum):&lt;/P&gt;&lt;P&gt;LET vStartDate = '2011-09-01';&lt;/P&gt;&lt;P&gt;LET vEndDate = Year(Today(1)) &amp;amp; '-' &amp;amp; NUM(MONTH(Today(1)),00) &amp;amp; '-' &amp;amp; Date(Today(1),'DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when all's stored in the qvd file, I used this:&lt;/P&gt;&lt;P&gt;LOAD * From GoogleAllGoals.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max_Start:&lt;/P&gt;&lt;P&gt;LOAD MAX(Data_date_qv) AS Max_StartDate&lt;/P&gt;&lt;P&gt;Resident GoogleAllGoals;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStartDate = Date(PEEK('Max_StartDate',0,'Max_Start'),'YYYY-MM-DD');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The google query itself would be something like this then:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://localhost:5555/QVSource/GoogleAnalyticsConnector/?table=Data&amp;amp;username=xxxx&amp;amp;password=xxxxx%3d%3d&amp;amp;feed=https%3a%2f%2fwww.google.com%2fanalytics%2ffeeds%2fdata%3fids%3dga%25xxxxx%26dimensions%3dga%253Adate%252Cga%253Acountry%252Cga%253Aregion%252Cga%253Acity%252Cga%253Asource%26metrics%3dga%253Avisitors%252Cga%253Agoal1Completions%252Cga%253Agoal2Completions%252Cga%253Agoal3Completions%252Cga%253Agoal4Completions%252Cga%253Agoal5Completions%26start-date%3d$(vStartDate)%26end-date%3d$(vEndDate)%26max-results%3d10000&amp;amp;format=html"&gt;http://localhost:5555/QVSource/GoogleAnalyticsConnector/?table=Data&amp;amp;username=xxxx&amp;amp;password=xxxxx%3d%3d&amp;amp;feed=https%3a%2f%2fwww.google.com%2fanalytics%2ffeeds%2fdata%3fids%3dga%25xxxxx%26dimensions%3dga%253Adate%252Cga%253Acountry%252Cga%253Aregion%252Cga%253Acity%252Cga%253Asource%26metrics%3dga%253Avisitors%252Cga%253Agoal1Completions%252Cga%253Agoal2Completions%252Cga%253Agoal3Completions%252Cga%253Agoal4Completions%252Cga%253Agoal5Completions%26start-date%3d$(vStartDate)%26end-date%3d$(vEndDate)%26max-results%3d10000&amp;amp;format=html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thanks again for taking the time to respond !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 08:05:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Analytics-API-Incremental-data-update-and-Dynamic-Date/m-p/293255#M108849</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-13T08:05:23Z</dc:date>
    </item>
  </channel>
</rss>

