<?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: Pull Google Analytics data from previous month in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Pull-Google-Analytics-data-from-previous-month/m-p/2007477#M1221586</link>
    <description>&lt;P&gt;Ah - my inexperience led me to above´s question - actually I just figured a solution it´s LET rather than SET ;):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;LET vGoogleMinQueryDate = date(monthstart(Today(), -1),'YYYY-MM-DD'); &lt;BR /&gt;LET vGoogleMaxQueryDate = date(monthend(Today(), -1),'YYYY-MM-DD');&lt;/P&gt;
&lt;P&gt;So that seems to do the job!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Nov 2022 14:29:54 GMT</pubDate>
    <dc:creator>jblank</dc:creator>
    <dc:date>2022-11-22T14:29:54Z</dc:date>
    <item>
      <title>Pull Google Analytics data from previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Pull-Google-Analytics-data-from-previous-month/m-p/2007453#M1221585</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I wonder if anyone has an idea how to dynamically pull GA data from entire previous month?&lt;/P&gt;
&lt;P&gt;My load script is using the specific URI query from API:&lt;BR /&gt;4_Q%26start-date%3d$&lt;STRONG&gt;(vGoogleMinQueryDate)&lt;/STRONG&gt;%26end-date%3d$&lt;STRONG&gt;(vGoogleMaxQueryDate)&lt;/STRONG&gt;&amp;amp;appID&lt;/P&gt;
&lt;P&gt;In order to set those two variables I was trying&lt;/P&gt;
&lt;P&gt;SET vGoogleMinQueryDate = date(monthstart(Today(), -1),'YYYY-MM-DD');&lt;/P&gt;
&lt;P&gt;SET vGoogleMaxQueryDate = date(monthend(Today(), -1),'YYYY-MM-DD');&lt;/P&gt;
&lt;P&gt;But that way, it returns that entire string as variable while Google expects something like '2022-10-01' / '2022-10-31'.&lt;/P&gt;
&lt;P&gt;I believe it must be a simple fix - does anyone has an idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&lt;/P&gt;
&lt;P&gt;Joerg&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 09:12:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pull-Google-Analytics-data-from-previous-month/m-p/2007453#M1221585</guid>
      <dc:creator>jblank</dc:creator>
      <dc:date>2022-11-22T09:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Pull Google Analytics data from previous month</title>
      <link>https://community.qlik.com/t5/QlikView/Pull-Google-Analytics-data-from-previous-month/m-p/2007477#M1221586</link>
      <description>&lt;P&gt;Ah - my inexperience led me to above´s question - actually I just figured a solution it´s LET rather than SET ;):&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;LET vGoogleMinQueryDate = date(monthstart(Today(), -1),'YYYY-MM-DD'); &lt;BR /&gt;LET vGoogleMaxQueryDate = date(monthend(Today(), -1),'YYYY-MM-DD');&lt;/P&gt;
&lt;P&gt;So that seems to do the job!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2022 14:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Pull-Google-Analytics-data-from-previous-month/m-p/2007477#M1221586</guid>
      <dc:creator>jblank</dc:creator>
      <dc:date>2022-11-22T14:29:54Z</dc:date>
    </item>
  </channel>
</rss>

