<?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: Set Analysis % Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63810#M773519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the ranges are predefined, I would create them in the script and then instead of creating them as multiple expressions, I would just create them as one expression with 2 dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2018 13:59:20 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-05-07T13:59:20Z</dc:date>
    <item>
      <title>Set Analysis % Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63807#M773516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is my calculation to get the amount of money by pay type for a range.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;Sum({&amp;lt;[Amt Paid] ={"&amp;gt;0&amp;lt;2500"}&amp;gt;}[Amt Paid])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;What I would like to do is now calculate the percent on that range so check would be about 54/56%, I thought it was as simple as "&lt;STRONG style="font-size: 12pt;"&gt; / sum(&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 12pt;"&gt;[Amt Paid])&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;" however that just takes the over all total? not just the summed section.&amp;nbsp; Do i need to write another analysis set to capture and divide the total?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for any assistance anyone can provide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/201707_Capture.PNG" style="height: auto;" /&gt;&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/Set-Analysis-Calculation/m-p/63807#M773516</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis % Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63808#M773517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;[Amt Paid] ={"&amp;gt;0&amp;lt;2500"}&amp;gt;}[Amt Paid])/Sum(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; {&amp;lt;[Amt Paid] ={"&amp;gt;0&amp;lt;2500"}&amp;gt;}[Amt Paid])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 13:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63808#M773517</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-07T13:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis % Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63809#M773518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I did need to do another set analysis to capture the total separately, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 13:54:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63809#M773518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T13:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis % Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63810#M773519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the ranges are predefined, I would create them in the script and then instead of creating them as multiple expressions, I would just create them as one expression with 2 dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 13:59:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63810#M773519</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-07T13:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis % Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63811#M773520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the ranged are unfortunately not predefined, i set the ranges in the expression.&amp;nbsp; Should I still build the calculation in the data load script as a best practice?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 14:13:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63811#M773520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T14:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis % Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63812#M773521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But you are hard-coding these ranges in your expressions, right? or are they decided based on some input from your users?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 14:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63812#M773521</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-07T14:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis % Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63813#M773522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct, I am hard coding them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 14:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63813#M773522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T14:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis % Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63814#M773523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, you can hard code them in the script then (assuming Amt Paid will always be a positive number, you can do like this)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If([Amt Paid] &amp;lt;= 2500, Dual('Transactions of $2,500 or less', 1),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Amt Paid] &amp;lt;= 10000, Dual('Transactions $2,501 to $10,000', 2),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Amt Paid] &amp;lt;= 100000, Dual('Transactions $10,001 to $100,000', 3),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&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; ....&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;))) as Transaction_Range&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then in your chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Payment Method&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Transaction_Range&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum([Amt Paid])/Sum(TOTAL &amp;lt;Transaction_Range&amp;gt; [Amt Paid])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 14:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63814#M773523</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-05-07T14:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis % Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63815#M773524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didnt think of that, thank you, I will give it a go.&lt;/P&gt;&lt;P&gt;Many Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 14:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Calculation/m-p/63815#M773524</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-07T14:50:28Z</dc:date>
    </item>
  </channel>
</rss>

