<?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: Straight Table (totals and %) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Straight-Table-totals-and/m-p/36971#M773277</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;I think that also this formulas should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Group]={'&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Group A&lt;/STRONG&gt;'}&amp;gt;}DISTINCT [ID])/count(TOTAL{&amp;lt;[Group]={'&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Group A&lt;/STRONG&gt;'}&amp;gt;}DISTINCT [ID])&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Group]={'&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Group B&lt;/STRONG&gt;'}&amp;gt;}DISTINCT [ID])/count(TOTAL{&amp;lt;[Group]={'&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Group B&lt;/STRONG&gt;'}&amp;gt;}DISTINCT [ID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2018 07:53:05 GMT</pubDate>
    <dc:creator>jaumecf23</dc:creator>
    <dc:date>2018-05-16T07:53:05Z</dc:date>
    <item>
      <title>Straight Table (totals and %)</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-totals-and/m-p/36969#M773275</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;I have a straight table that looks like this.&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; width: 238px; height: 72px;" width="236"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Group A&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Group B&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Active&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Completed&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;12&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;16&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension is simply [Status]&lt;/P&gt;&lt;P&gt;Expression for Group A is count({&amp;lt;[Group]={'Group A'}&amp;gt;}DISTINCT [ID])&lt;/P&gt;&lt;P&gt;Expression for Group B is &lt;SPAN style="font-size: 13.3333px;"&gt;count({&amp;lt;[Group]={'Group B'}&amp;gt;}DISTINCT [ID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to add an expression for Group A % and Group B %. I want Group A % to be the % of each Status over the total for Group A and likewise for Group B %, it would be the % of each Status over the total for Group B. Result would be:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="74" style="border: 1px solid #000000; width: 406px; height: 64px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Status&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Group A&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Group A %&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Group B&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Group B%&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Active&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;50%&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;20%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Completed&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;50%&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;16&lt;/TD&gt;&lt;TD style="padding: 2px; text-align: center;"&gt;80%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So essentially for Group A%, the expression would be something like:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;count({&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Group]={'Group A'}&lt;/SPAN&gt;&amp;gt;}DISTINCT [ID]) &lt;EM&gt;divided by the count of total [ID] for Group A&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any ideas?&lt;BR /&gt;&lt;/SPAN&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/Straight-Table-totals-and/m-p/36969#M773275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table (totals and %)</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-totals-and/m-p/36970#M773276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No need to respond. I created variables for the totals which I then used on the divisor of the expressions. At first I was exploring handling this through the expression since I had incorrectly assumed the totals from the variables would not update based on selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 07:47:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-totals-and/m-p/36970#M773276</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-16T07:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Straight Table (totals and %)</title>
      <link>https://community.qlik.com/t5/QlikView/Straight-Table-totals-and/m-p/36971#M773277</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;I think that also this formulas should work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Group]={'&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Group A&lt;/STRONG&gt;'}&amp;gt;}DISTINCT [ID])/count(TOTAL{&amp;lt;[Group]={'&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Group A&lt;/STRONG&gt;'}&amp;gt;}DISTINCT [ID])&lt;/P&gt;&lt;P&gt;count({&amp;lt;[Group]={'&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Group B&lt;/STRONG&gt;'}&amp;gt;}DISTINCT [ID])/count(TOTAL{&amp;lt;[Group]={'&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;Group B&lt;/STRONG&gt;'}&amp;gt;}DISTINCT [ID])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2018 07:53:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Straight-Table-totals-and/m-p/36971#M773277</guid>
      <dc:creator>jaumecf23</dc:creator>
      <dc:date>2018-05-16T07:53:05Z</dc:date>
    </item>
  </channel>
</rss>

