<?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: Average Expression from Totals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213024#M388821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add a dummy dimension like ='Total' to force dimensionality() to work. But that's probably not ideal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gather you have separate expressions for each row? Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Top Performer = sum(Blah)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Mid = sum(Something)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Under = sum(Other)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you modify the data model in a way that Top Performer, Mid, and Under are dimension values? Or are they dependent on selections? If the latter, you could still create an island dimension not connected to anything, [Performance Category], say. You could use that as a dimension, and something like this as the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pick(match([Performance Category],'Top Performer','Mid','Under'),sum(Blah),sum(Something),sum(Other))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then have a second expression &lt;SPAN style="font-family: courier new,courier;"&gt;=column(1)&lt;/SPAN&gt;, and checkmark Relative, and don't have totals. I haven't tried it, but it seems like it could work. If you can't touch the data model at all, then you could use a valueloop() instead of the island dimension. Not sure this is any better than forcing dimensionality() to work with a dummy dimension, but it's an option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Oct 2016 20:27:28 GMT</pubDate>
    <dc:creator>johnw</dc:creator>
    <dc:date>2016-10-24T20:27:28Z</dc:date>
    <item>
      <title>Average Expression from Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213018#M388815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I currently have a really small table that has only 3 expressions.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sin título.png" class="jive-image image-1" src="/legacyfs/online/141764_Sin título.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I wonder, if its possible for this table to have the % of the Total as a Total.&lt;/P&gt;&lt;P&gt;For example, i want my table to be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&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;Header 1&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;Header 2&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;Header 3&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Top Performer&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;20&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;59%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Mid&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;6&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;18%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Under&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;8&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;23%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 18:17:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213018#M388815</guid>
      <dc:creator />
      <dc:date>2016-10-24T18:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Average Expression from Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213019#M388816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming your expression to be Count(Measure), you can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(Measure)/Count(TOTAL Measure)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 18:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213019#M388816</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-24T18:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Average Expression from Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213020#M388817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would change the result of the expression and the total, im looking for a way to change only the total, not the result in the expression.&lt;/P&gt;&lt;P&gt;I cant use Dimensionality beacuse there are no dimensions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 19:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213020#M388817</guid>
      <dc:creator />
      <dc:date>2016-10-24T19:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: Average Expression from Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213021#M388818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use Dimensionality to do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7969"&gt;How to use - Dimensionality()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-8006"&gt;The second dimension... or how to use secondarydimensionality()&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:01:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213021#M388818</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-24T20:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: Average Expression from Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213022#M388819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I cant because there are no dimensions on the table, so its the same Dimensionality for Totals and for the expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213022#M388819</guid>
      <dc:creator />
      <dc:date>2016-10-24T20:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Average Expression from Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213023#M388820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand you setup, would you be able to share a sample to show how your table is setup?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213023#M388820</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-10-24T20:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Average Expression from Totals</title>
      <link>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213024#M388821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add a dummy dimension like ='Total' to force dimensionality() to work. But that's probably not ideal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gather you have separate expressions for each row? Like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Top Performer = sum(Blah)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Mid = sum(Something)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Under = sum(Other)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you modify the data model in a way that Top Performer, Mid, and Under are dimension values? Or are they dependent on selections? If the latter, you could still create an island dimension not connected to anything, [Performance Category], say. You could use that as a dimension, and something like this as the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;pick(match([Performance Category],'Top Performer','Mid','Under'),sum(Blah),sum(Something),sum(Other))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then have a second expression &lt;SPAN style="font-family: courier new,courier;"&gt;=column(1)&lt;/SPAN&gt;, and checkmark Relative, and don't have totals. I haven't tried it, but it seems like it could work. If you can't touch the data model at all, then you could use a valueloop() instead of the island dimension. Not sure this is any better than forcing dimensionality() to work with a dummy dimension, but it's an option.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Oct 2016 20:27:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-Expression-from-Totals/m-p/1213024#M388821</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2016-10-24T20:27:28Z</dc:date>
    </item>
  </channel>
</rss>

