<?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 Scripting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1632160#M733526</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Currently I have a&amp;nbsp; variable formula&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;=num($(eRSFPerTotalAttorneys), '#,##0')&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;that says....&lt;/P&gt;&lt;P&gt;give me the size of all locations and divide it by the number of all attorneys for all locations.&amp;nbsp; Here is the set analysis I have set for this Variable...&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eRSFPerTotalAttorneys = $(eRSF) / $(eTotalAttorneys);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eRSF = 'sum(Size)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eTotalAttorneys = 'sum([Total Number of Attorneys])';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me modify the Set analysis to exclude Beijing and Shanghai locations?&lt;/P&gt;&lt;P&gt;I tried this but it comes up as blank ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eRSFPerTotalAttorneyss = $(eRSFF) / $(eTotalAttorneyss);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eRSFF = 'sum({&amp;lt;City-={'Beijing', 'Shanghai', 'Taipei'}&amp;gt;}(Size)'; //without Asia&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eTotalAttorneyss = 'sum({&amp;lt;City-={'Beijing', 'Shanghai', 'Taipei'}&amp;gt;} [Total Number of Attorneys]) '; //without Asia&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I don't try to exclude anything, it populates as 6408, but when I try to exclude these locations, it comes up blank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20838i91E41EFE7632D08D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator>RealEstate2018</dc:creator>
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1632160#M733526</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;Currently I have a&amp;nbsp; variable formula&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;=num($(eRSFPerTotalAttorneys), '#,##0')&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;that says....&lt;/P&gt;&lt;P&gt;give me the size of all locations and divide it by the number of all attorneys for all locations.&amp;nbsp; Here is the set analysis I have set for this Variable...&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eRSFPerTotalAttorneys = $(eRSF) / $(eTotalAttorneys);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eRSF = 'sum(Size)';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eTotalAttorneys = 'sum([Total Number of Attorneys])';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me modify the Set analysis to exclude Beijing and Shanghai locations?&lt;/P&gt;&lt;P&gt;I tried this but it comes up as blank ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eRSFPerTotalAttorneyss = $(eRSFF) / $(eTotalAttorneyss);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eRSFF = 'sum({&amp;lt;City-={'Beijing', 'Shanghai', 'Taipei'}&amp;gt;}(Size)'; //without Asia&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET eTotalAttorneyss = 'sum({&amp;lt;City-={'Beijing', 'Shanghai', 'Taipei'}&amp;gt;} [Total Number of Attorneys]) '; //without Asia&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I don't try to exclude anything, it populates as 6408, but when I try to exclude these locations, it comes up blank&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_0.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20838i91E41EFE7632D08D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1632160#M733526</guid>
      <dc:creator>RealEstate2018</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/1632188#M733527</link>
      <description>&lt;P&gt;I see a possible issue&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SET eRSFF = sum({&amp;lt;City-={'Beijing', 'Shanghai', 'Taipei'}&amp;gt;}Size);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and it will be better if you don't use quotes outside or use double quotes (should work with set if I am not wrong)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 19:42:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/1632188#M733527</guid>
      <dc:creator>asinha1991</dc:creator>
      <dc:date>2019-10-07T19:42:10Z</dc:date>
    </item>
  </channel>
</rss>

