<?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: Google Static map sorting issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Google-Static-map-sorting-issue/m-p/123139#M18765</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What QV expression are you using to build the url?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Sep 2018 16:44:41 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-09-14T16:44:41Z</dc:date>
    <item>
      <title>Google Static map sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Static-map-sorting-issue/m-p/123138#M18764</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;I am trying to get a Google static world heat map to work in QlikView.&lt;/P&gt;&lt;P&gt;The code-string I am using in a text object as an image and it works just fine (in fact the map is shown and the coloring is given to the selected countries) - but however the sorting of the values is not correct:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://chart.apis.google.com/chart?&amp;amp;cht=t&amp;amp;chs=440x220&amp;amp;chtm=world&amp;amp;chco=f5f5f5,EEF3F7,517992,052A47&amp;amp;chld=ATAUBECACH&amp;amp;chd=t:100,31,34,43,58" rel="nofollow" target="_blank"&gt;http://chart.apis.google.com/chart?&amp;amp;cht=t&amp;amp;chs=440x220&amp;amp;chtm=world&amp;amp;chco=f5f5f5,EEF3F7,517992,052A47&amp;amp;chld=ATAUBECACH&amp;amp;chd=t:100,31,34,43,58&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So according to above string the countries with the highest values should be Austria (AT) and Switzerland (CH) - which is not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have a suggestion to a solution for the correct values to be matched with the correct country code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 06:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Static-map-sorting-issue/m-p/123138#M18764</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-13T06:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Google Static map sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Static-map-sorting-issue/m-p/123139#M18765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What QV expression are you using to build the url?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 16:44:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Static-map-sorting-issue/m-p/123139#M18765</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-09-14T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Google Static map sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Static-map-sorting-issue/m-p/123140#M18766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;The chart expression is as follows:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;SPAN&gt;='&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://chart.apis.google.com/chart?&amp;amp;cht=t" rel="nofollow" target="_blank"&gt;http://chart.apis.google.com/chart?&amp;amp;cht=t&lt;/A&gt;&lt;SPAN&gt;' &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &amp;amp; '&amp;amp;chs=' &amp;amp; '440x220' /* Chart size */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &amp;amp; '&amp;amp;chtm=' &amp;amp; 'world' /* Region */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &amp;amp; '&amp;amp;chco=' &amp;amp; 'f5f5f5'&amp;nbsp; /* Color for no value */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &amp;amp; ',' &amp;amp; 'D5E3EC,517992,143C54'&amp;nbsp; /* Color gradient */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &amp;amp; '&amp;amp;chld=' &amp;amp; concat(DISTINCT [Country code], '', fieldIndex('ISO', [Country code])) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt; &amp;amp; '&amp;amp;chd=t:' &amp;amp; concat(ceil(aggr(100*sum(_Sales)/max(TOTAL aggr(DISTINCT sum(_Sales), [Country code])), [Country code])), ',', fieldIndex('ISO', [Country code]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LOAD script:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Tmp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD * INLINE [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Country code, _Sales&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;QA, 50142&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SG, 266437&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TH, 267775&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SK, 810146&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SA, 341680&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RO, 439454&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;TW, 607048&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;PT, 313915&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;SE, 2720556&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RU, 4151880&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;The rendered map parameters:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://chart.apis.google.com/chart?&amp;amp;cht=t&amp;amp;chs=440x220&amp;amp;chtm=world&amp;amp;chco=f5f5f5,D5E3EC,517992,143C54&amp;amp;chld=PTQARORUSASESGSKTHTW&amp;amp;chd=t:100,11,15,2,20,66,7,7,8,9" title="http://chart.apis.google.com/chart?&amp;amp;cht=t&amp;amp;chs=440x220&amp;amp;chtm=world&amp;amp;chco=f5f5f5,D5E3EC,517992,143C54&amp;amp;chld=PTQARORUSASESGSKTHTW&amp;amp;chd=t:100,11,15,2,20,66,7,7,8,9"&gt;http://chart.apis.google.com/chart?&amp;amp;cht=t&amp;amp;chs=440x220&amp;amp;chtm=world&amp;amp;chco=f5f5f5,D5E3EC,517992,143C54&amp;amp;chld=PTQARORUSASESGSKT…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the correct CountryCode / Sales pairs should be as:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 204px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="18" width="102"&gt;&lt;STRONG&gt;Country code&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="102"&gt;&lt;STRONG&gt;=Sum(_Sales)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: none;"&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="18" style="border-top: none;"&gt;RU&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;4 151 880&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="18" style="border-top: none;"&gt;SE&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;2 720 556&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="18" style="border-top: none;"&gt;SK&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;810 146&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="18" style="border-top: none;"&gt;TW&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;607 048&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="18" style="border-top: none;"&gt;RO&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;439 454&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="18" style="border-top: none;"&gt;SA&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;341 680&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="18" style="border-top: none;"&gt;PT&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;313 915&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="18" style="border-top: none;"&gt;TH&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;267 775&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="18" style="border-top: none;"&gt;SG&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;266 437&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="18" style="border-top: none;"&gt;QA&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;50 142&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and BR,&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 06:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Static-map-sorting-issue/m-p/123140#M18766</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-15T06:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Google Static map sorting issue</title>
      <link>https://community.qlik.com/t5/QlikView/Google-Static-map-sorting-issue/m-p/123141#M18767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see anything obvious. i suggest to start testing the expression a piece at a time in a text object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Sep 2018 14:15:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Google-Static-map-sorting-issue/m-p/123141#M18767</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-09-15T14:15:32Z</dc:date>
    </item>
  </channel>
</rss>

