<?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: Filtering Google Analytics data in load script in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Filtering-Google-Analytics-data-in-load-script/m-p/1391056#M7008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It simply works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't able to locate the WHERE clause in the right place &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2017 07:13:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-09-22T07:13:48Z</dc:date>
    <item>
      <title>Filtering Google Analytics data in load script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Filtering-Google-Analytics-data-in-load-script/m-p/1391053#M7005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to filter data from different Google Analytics data connections in my load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen examples of filtering using "where" SQL statement but I've always got error when tried.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, how could I edit this script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GARsummaryM:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim_yearMonth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; metric_newUsers&lt;/P&gt;&lt;P&gt;FROM [lib://GAR-summary-mensual (escorpesqs_divisadero)]&lt;/P&gt;&lt;P&gt;(qvx);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to get only data matching dim_yearMonth = '201701' or metric_newUsers &amp;gt; 1000?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Apr 2021 08:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Filtering-Google-Analytics-data-in-load-script/m-p/1391053#M7005</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-04-02T08:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Google Analytics data in load script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Filtering-Google-Analytics-data-in-load-script/m-p/1391054#M7006</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;Did you try with:&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;GARsummaryM:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LOAD&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dim_yearMonth,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; metric_newUsers&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM [lib://GAR-summary-mensual (escorpesqs_divisadero)] (qvx)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;WHERE &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;dim_yearMonth = '201701' or metric_newUsers &amp;gt; 1000&lt;/SPAN&gt; ;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 16:46:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Filtering-Google-Analytics-data-in-load-script/m-p/1391054#M7006</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-21T16:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Google Analytics data in load script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Filtering-Google-Analytics-data-in-load-script/m-p/1391055#M7007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue with that approach is all of the data will need to be served up by Google to then be ignored by the query.&amp;nbsp; With a single dimension at a monthly granularity this probably wouldn't be a problem - but if you had a different query it would be a nightmare.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To do this properly the limitation needs to go in the URL that is passed to Google.&amp;nbsp; This could be done in the connection, but it would not be possible to change it from one query to the next.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other approach is to disable "Standard Mode" which will allow you to modify the parameters of the query on the fly - but this is a security risk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is more on standard mode usage here: &lt;A href="https://community.qlik.com/thread/134666"&gt;Load Web File dynamically&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are other places where this is referenced also on the Community.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 19:50:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Filtering-Google-Analytics-data-in-load-script/m-p/1391055#M7007</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2017-09-21T19:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Google Analytics data in load script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Filtering-Google-Analytics-data-in-load-script/m-p/1391056#M7008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It simply works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't able to locate the WHERE clause in the right place &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 07:13:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Filtering-Google-Analytics-data-in-load-script/m-p/1391056#M7008</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-22T07:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering Google Analytics data in load script</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Filtering-Google-Analytics-data-in-load-script/m-p/1391057#M7009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand the point, unfortunately, IT team doesn't approve Standard Mode disabling so I have to perform a huge amount of request and it is going to be very painful to update data when needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can directly filter data in the Analytics request through "filter" parameter but a limitation of characters exists so anyway, I needed to be capable of using filtering inside the load script.&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;Asuncion&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 07:20:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Filtering-Google-Analytics-data-in-load-script/m-p/1391057#M7009</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-22T07:20:38Z</dc:date>
    </item>
  </channel>
</rss>

