<?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: Script Level Calculation Workaround in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4534#M792557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a ValueList() in your dimension and expression or a data island table to create the KPI dimension.&lt;/P&gt;&lt;P&gt;Then use a Pick(Match() ) combination to branch your expression into the appropriate expression calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jan 2018 12:01:11 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2018-01-22T12:01:11Z</dc:date>
    <item>
      <title>Script Level Calculation Workaround</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4530#M792552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;BR /&gt;I am stuck at a script level calculation&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;BR /&gt;Consider a load statement,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;LOAD Continent,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Country,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [# of Managers],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [# of Non Managers],&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [# of Non Mangers]/ [# of Managers] as [Ratio of Non Managers and Managers]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM source;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;On the UI level if I create a Straight Table With Country and Sum(Ratio) it gives me the desired output.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt; But when it is a Straight Chart with Continent and Sum(Ratio) it gives me the sum of all the ratio values of the countries withing the continent.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Example:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Country&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Manager&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Non Manager Ratio&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;----------------------------------------------------------&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 16&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Continent&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Manager&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Non Manager&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ratio&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;AB&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Here i get 5 instead of 2.33&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I want the workaround for giving me the ratio of # of Managers and # Non Managers for Both Country and Continent and not the Sum of Ratio. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4530#M792552</guid>
      <dc:creator>aslam24196</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Script Level Calculation Workaround</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4531#M792554</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;Maybe you should divide the Ratio by the number of the countries, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=sum(Ratio)/Count(DISTINCT Country)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and maybe do the same for the continent dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:14:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4531#M792554</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-01-22T09:14:43Z</dc:date>
    </item>
    <item>
      <title>Re: Script Level Calculation Workaround</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4532#M792555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your ratio is a non-additive measure.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4647"&gt;Additive and Non-Additive Numbers&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep the original people count in your data and calculate the ratio in your chart expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(&amp;nbsp; [# of Managers]) / Sum( [# of Non Managers] )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:25:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4532#M792555</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-01-22T09:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Script Level Calculation Workaround</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4533#M792556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Stefan,&lt;/P&gt;&lt;P&gt;Your feedback is helpful but I am unsure of how to proceed in my Situation as you see in the attached image, I have used my Expressions as Dimensions and Using Set analysis have calculated the # of Managers, #Non Managers and Ratio for each Quarter. This was the reason I used the Calculation at Script Level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I add a Calculated value to the KPI List?&lt;/P&gt;&lt;P&gt;Or Is there any other way for this? &lt;IMG alt="New Bitmap Image.bmp" class="jive-image image-1" src="/legacyfs/online/190892_New Bitmap Image.bmp" style="height: 41px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The Above is for a Continent where for each quarter the Ratio is actually the sum of the ratios for the Countries within the Continent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 11:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4533#M792556</guid>
      <dc:creator>aslam24196</dc:creator>
      <dc:date>2018-01-22T11:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Script Level Calculation Workaround</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4534#M792557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a ValueList() in your dimension and expression or a data island table to create the KPI dimension.&lt;/P&gt;&lt;P&gt;Then use a Pick(Match() ) combination to branch your expression into the appropriate expression calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 12:01:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4534#M792557</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-01-22T12:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: Script Level Calculation Workaround</title>
      <link>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4535#M792558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Stefan &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Very Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 12:23:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Script-Level-Calculation-Workaround/m-p/4535#M792558</guid>
      <dc:creator>aslam24196</dc:creator>
      <dc:date>2018-01-22T12:23:37Z</dc:date>
    </item>
  </channel>
</rss>

