<?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 % of total If statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394841#M147254</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this IF statement- If([SERVICE LINE]='PF HOSPITALIST', sum(CASES), sum([ADJSTD CASES]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I take the % of total of the IF statement? Do I have to enter this into the script or is there something I can do in the chart type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it would read Sum(IF statement)/ Sum( Total IF Statement). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2013 17:26:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-28T17:26:36Z</dc:date>
    <item>
      <title>% of total If statement</title>
      <link>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394841#M147254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this IF statement- If([SERVICE LINE]='PF HOSPITALIST', sum(CASES), sum([ADJSTD CASES]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I take the % of total of the IF statement? Do I have to enter this into the script or is there something I can do in the chart type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it would read Sum(IF statement)/ Sum( Total IF Statement). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:26:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394841#M147254</guid>
      <dc:creator />
      <dc:date>2013-02-28T17:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: % of total If statement</title>
      <link>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394842#M147255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In some chart types you can check the Relative option for the expression. That should give you the percentages of the total. This is not possible in pivot tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394842#M147255</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-28T17:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: % of total If statement</title>
      <link>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394843#M147256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right..pivot table is the chart type I need for this... &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:33:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394843#M147256</guid>
      <dc:creator />
      <dc:date>2013-02-28T17:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: % of total If statement</title>
      <link>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394844#M147257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course you do. People always need the most bothersome option available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe like this then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If([SERVICE LINE]='PF HOSPITALIST', sum(CASES), sum([ADJSTD CASES])) / (sum({&amp;lt;[SERVICE LINE]={'PF HOSPITALIST'}&amp;gt;} total CASES) + sum({&amp;lt;[SERVICE LINE]-={'PF HOSPITALIST'}&amp;gt;} total ADJSTD CASES))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 17:37:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394844#M147257</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-28T17:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: % of total If statement</title>
      <link>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394845#M147258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I try to be difficult &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;. So close! The formula doesn't like the -= sign so anytime a selection is made when I need to use ADJSTD CASES the % is incorrect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 18:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394845#M147258</guid>
      <dc:creator />
      <dc:date>2013-02-28T18:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: % of total If statement</title>
      <link>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394846#M147259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a bug in the editor. The -= is correct syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 18:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394846#M147259</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-02-28T18:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: % of total If statement</title>
      <link>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394847#M147260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yea I know sometimes the syntax after will be underlined in red but the formula will work correctly. In this case though when no selections are made it shows 57% as total when it should be 100%. Anytime a selection is made when it is suming ADJSTD CASES it is incorrect. When it is suming CASES it is correct. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 18:32:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/of-total-If-statement/m-p/394847#M147260</guid>
      <dc:creator />
      <dc:date>2013-02-28T18:32:47Z</dc:date>
    </item>
  </channel>
</rss>

