<?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 Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script/m-p/1631291#M732614</link>
    <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I was hoping someone can help me figure out how to modify 2 formulas shown below. Currently, the formula shown&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;=num(sum(Size) / sum([Maximum Attorney Capacity]), '#,##0')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;takes the total square feet of all locations and divides it by the total of all attorneys from every office. Therefore, as an example, Shanghai might have 842 square feet per attorney.&lt;/P&gt;&lt;P&gt;I want to know if there is a way to exclude specific cities, meaning, give me total square of all locations (excluding Beijing and Hong Kong as an example) divided by total attorneys from every office except Beijing and Hong Kong as an example.&lt;/P&gt;&lt;P&gt;The formula is input into a text object so I don't have any way to filter things so the formula needs to be set to exclude directly within the formula.&amp;nbsp; All locations are identified under a common indicator known as "City" (I've attached a copy from a Bar chart as an example)&lt;/P&gt;&lt;P&gt;This is another formula that I would like to exclude Beijing and Hong Kong as well...&lt;STRONG&gt;= num((sum([Total Number of Attorneys])+sum([Total Non-Attorneys])+sum([Sublet Lawyer Offices]))/sum([Maximum Attorney Capacity]),'###.%');&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This formula gives you a percentage of how well attorney capacity is utilized.&amp;nbsp; If someone can help me exclude Beijing and Hong Kong, that will be amazing!&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/20660i47F0E9610C387386/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;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_1.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20661i6D2E64DB01B54E3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_1.png" alt="clipboard_image_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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>Script</title>
      <link>https://community.qlik.com/t5/QlikView/Script/m-p/1631291#M732614</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I was hoping someone can help me figure out how to modify 2 formulas shown below. Currently, the formula shown&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;=num(sum(Size) / sum([Maximum Attorney Capacity]), '#,##0')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;takes the total square feet of all locations and divides it by the total of all attorneys from every office. Therefore, as an example, Shanghai might have 842 square feet per attorney.&lt;/P&gt;&lt;P&gt;I want to know if there is a way to exclude specific cities, meaning, give me total square of all locations (excluding Beijing and Hong Kong as an example) divided by total attorneys from every office except Beijing and Hong Kong as an example.&lt;/P&gt;&lt;P&gt;The formula is input into a text object so I don't have any way to filter things so the formula needs to be set to exclude directly within the formula.&amp;nbsp; All locations are identified under a common indicator known as "City" (I've attached a copy from a Bar chart as an example)&lt;/P&gt;&lt;P&gt;This is another formula that I would like to exclude Beijing and Hong Kong as well...&lt;STRONG&gt;= num((sum([Total Number of Attorneys])+sum([Total Non-Attorneys])+sum([Sublet Lawyer Offices]))/sum([Maximum Attorney Capacity]),'###.%');&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This formula gives you a percentage of how well attorney capacity is utilized.&amp;nbsp; If someone can help me exclude Beijing and Hong Kong, that will be amazing!&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/20660i47F0E9610C387386/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;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clipboard_image_1.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/20661i6D2E64DB01B54E3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clipboard_image_1.png" alt="clipboard_image_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script/m-p/1631291#M732614</guid>
      <dc:creator>RealEstate2018</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.qlik.com/t5/QlikView/Script/m-p/1631293#M732615</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;=num(sum({&amp;lt;City-={'&lt;SPAN&gt;Beijing&lt;/SPAN&gt;', '&lt;SPAN&gt;Hong Kong&lt;/SPAN&gt;'}&amp;gt;}Size)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;/ sum({&amp;lt;City-={'&lt;SPAN&gt;Beijing&lt;/SPAN&gt;', '&lt;SPAN&gt;Hong Kong&lt;/SPAN&gt;'}&amp;gt;}[Maximum Attorney Capacity]), '#,##0')&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;-Rob&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 22:27:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script/m-p/1631293#M732615</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-10-03T22:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.qlik.com/t5/QlikView/Script/m-p/1631637#M732616</link>
      <description>&lt;P&gt;THANKS!! Do you think you can do the same for this formula?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;= num((sum([Total Number of Attorneys])+sum([Total Non-Attorneys])+sum([Sublet Lawyer Offices]))/sum([Maximum Attorney Capacity]),'###.%');&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Oct 2019 20:22:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script/m-p/1631637#M732616</guid>
      <dc:creator>RealEstate2018</dc:creator>
      <dc:date>2019-10-04T20:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Script</title>
      <link>https://community.qlik.com/t5/QlikView/Script/m-p/1632124#M732617</link>
      <description>&lt;P&gt;What you need to do is add "set analysis" within your sum() functions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;City-={'&lt;SPAN&gt;Beijing&lt;/SPAN&gt;', '&lt;SPAN&gt;Hong Kong&lt;/SPAN&gt;'}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Read more about Set Analysis in the help:&lt;A href="https://help.qlik.com/en-US/sense/September2019/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAnalysis/set-analysis-expressions.htm" target="_blank"&gt;https://help.qlik.com/en-US/sense/September2019/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetAnalysis/set-analysis-expressions.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is also a great set of examples:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-syntaxes-examples/ta-p/1491810" target="_blank"&gt;https://community.qlik.com/t5/QlikView-Documents/Set-Analysis-syntaxes-examples/ta-p/1491810&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Set Analysis can get complex at times, so don't be afraid to search the forums here for examples or ask questions.&amp;nbsp; But do give it a try.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 16:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script/m-p/1632124#M732617</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2019-10-07T16:44:00Z</dc:date>
    </item>
  </channel>
</rss>

