<?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: Pivot Table TOTAL with Calculated Dimension in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Pivot-Table-TOTAL-with-Calculated-Dimension/m-p/1556273#M40350</link>
    <description>&lt;P&gt;Got it working with the following expression:&lt;/P&gt;&lt;PRE&gt;=Top(RangeAvg(Below(avg({$} [Score]), 0, NoOfRows())))&lt;/PRE&gt;&lt;P&gt;I had been trying expressions similar to the one above for about 6 hours before I posted this question, and then I figured it out 15 minutes later &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://community.qlik.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2019 21:42:45 GMT</pubDate>
    <dc:creator>dselgo_eidex</dc:creator>
    <dc:date>2019-03-13T21:42:45Z</dc:date>
    <item>
      <title>Pivot Table TOTAL with Calculated Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-TOTAL-with-Calculated-Dimension/m-p/1556256#M40325</link>
      <description>&lt;P&gt;Hello, I am currently working on creating a pivot table that uses a calculated dimension to form test percentile groups, and another dimension to show the students within those groups. The problem is that I want one of my columns on the pivot table to be the average score for the entire percentile group.&lt;/P&gt;&lt;P&gt;So basically, I want the table to show this when not expanded:&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 889px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7964i54EA15EEC43FDF79/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And then show this when I expand the percentile group (note: I hard-coded the expression to 89.7 to show an example):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 893px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/7963i80DAA5B30EF6C6F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimensions&lt;/STRONG&gt;:&lt;BR /&gt;Percentile Group:&lt;/P&gt;&lt;PRE&gt;=replace(replace(replace(
    class(aggr({$} &lt;BR /&gt;        (((
            count({$} DISTINCT TOTAL [Student]) - 
            rank(TOTAL avg({$} [Score]), 3
            )
        ) / 
        count({$} DISTINCT TOTAL [Student]
        )) * 100), [Student]
    ), 20), '0 &amp;lt;= x &amp;lt; ', '1st - '), '0', '0th Percentiles'), '10th Percentiles0th Percentiles', '99th Percentiles'
)&lt;/PRE&gt;&lt;P&gt;Student: [Student]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measures&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Average Score: =avg({$} [Score])&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normally, I would achieve the result I want by making the measure =avg({$} TOTAL&amp;lt;[Dimension]&amp;gt; [Score]), but since I have a calculated dimension, I am unable to do this.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-TOTAL-with-Calculated-Dimension/m-p/1556256#M40325</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2024-11-16T06:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pivot Table TOTAL with Calculated Dimension</title>
      <link>https://community.qlik.com/t5/App-Development/Pivot-Table-TOTAL-with-Calculated-Dimension/m-p/1556273#M40350</link>
      <description>&lt;P&gt;Got it working with the following expression:&lt;/P&gt;&lt;PRE&gt;=Top(RangeAvg(Below(avg({$} [Score]), 0, NoOfRows())))&lt;/PRE&gt;&lt;P&gt;I had been trying expressions similar to the one above for about 6 hours before I posted this question, and then I figured it out 15 minutes later &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://community.qlik.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 21:42:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Pivot-Table-TOTAL-with-Calculated-Dimension/m-p/1556273#M40350</guid>
      <dc:creator>dselgo_eidex</dc:creator>
      <dc:date>2019-03-13T21:42:45Z</dc:date>
    </item>
  </channel>
</rss>

