<?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 Percentages in two columns in a pivot table in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Percentages-in-two-columns-in-a-pivot-table/m-p/1689530#M52642</link>
    <description>&lt;P&gt;I have a pivot table that's showing details of edits done to some data. The rows show the edit reason and there are two columns: one that looks at the last 7 days, and the other looks at earlier data.&lt;/P&gt;&lt;P&gt;When I simply want a count it all works fine, but what I'm after now is to add percentages. If I try this:&lt;/P&gt;&lt;P&gt;count(reasoncode)/count(Total(reasoncode))&lt;/P&gt;&lt;P&gt;it gives me a percentage for each cell based on the total number of edits irrespective of the date. (see below) What I need is a way to divide by the total edits within the timeframes specified by the columns.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Averages.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30995i364CF97971031878/image-size/large?v=v2&amp;amp;px=999" role="button" title="Averages.PNG" alt="Averages.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
    <dc:creator>D_Williams</dc:creator>
    <dc:date>2021-12-20T21:32:42Z</dc:date>
    <item>
      <title>Percentages in two columns in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Percentages-in-two-columns-in-a-pivot-table/m-p/1689530#M52642</link>
      <description>&lt;P&gt;I have a pivot table that's showing details of edits done to some data. The rows show the edit reason and there are two columns: one that looks at the last 7 days, and the other looks at earlier data.&lt;/P&gt;&lt;P&gt;When I simply want a count it all works fine, but what I'm after now is to add percentages. If I try this:&lt;/P&gt;&lt;P&gt;count(reasoncode)/count(Total(reasoncode))&lt;/P&gt;&lt;P&gt;it gives me a percentage for each cell based on the total number of edits irrespective of the date. (see below) What I need is a way to divide by the total edits within the timeframes specified by the columns.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Averages.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30995i364CF97971031878/image-size/large?v=v2&amp;amp;px=999" role="button" title="Averages.PNG" alt="Averages.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 21:32:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Percentages-in-two-columns-in-a-pivot-table/m-p/1689530#M52642</guid>
      <dc:creator>D_Williams</dc:creator>
      <dc:date>2021-12-20T21:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Percentages in two columns in a pivot table</title>
      <link>https://community.qlik.com/t5/App-Development/Percentages-in-two-columns-in-a-pivot-table/m-p/1689534#M52643</link>
      <description>&lt;P&gt;Looks like Last7 and Earlier are defined as dimensions; try define them as measures (i.e. create two measure with set expression within them)&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2020 16:11:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Percentages-in-two-columns-in-a-pivot-table/m-p/1689534#M52643</guid>
      <dc:creator>lorenzoconforti</dc:creator>
      <dc:date>2020-03-31T16:11:12Z</dc:date>
    </item>
  </channel>
</rss>

