<?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: Help required with Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332471#M826129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I basically I am summing the value for each commissioner_code and programme_Category and ignoring the selection in &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code&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;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;commissioner_code&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next we needed the Avg across all the &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code, so used TOTAL Qualifier with the field name yet again ignoring selection in &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code.&lt;/SPAN&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;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Avg({&amp;lt;commissioner_code&amp;gt;} TOTAL &amp;lt;programme_category&amp;gt; Aggr(Sum({&amp;lt;commissioner_code&amp;gt;}Value), commissioner_code, programme_category))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, since I am ignoring selection in &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code, any selection in &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code will keep showing all the rows. In order to only show the single selected row, but still show the overall average, I multiplied it with Avg(1). Avg(1) will equal 1 for selected &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code and will equal 0 for all other making them all 0.&lt;/SPAN&gt;&lt;/SPAN&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;Does this help?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2017 09:00:54 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-07-06T09:00:54Z</dc:date>
    <item>
      <title>Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332459#M826111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Can any one help with this one please?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;In the source data there are lots of rows for Adverse effects, but when you group up by ccg there are 12 sums to be averaged:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 367px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;CCG&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;programme_category&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;Value&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;Avg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;00T&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;30607&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;00V&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;80011&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;00W&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;2274&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;00Y&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;48864&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;01D&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;91356&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;01G&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;121482&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;01M&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;114102&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;01N&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;10377&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;01W&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;75541&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;01Y&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;27386&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;02A&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;3720&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD nowrap="nowrap" style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="122"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;02H&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="181"&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;Adverse effects and posioning&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;P align="right" style="text-align: right;"&gt;&lt;SPAN style="color: black;"&gt;133236&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD nowrap="nowrap" style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="64"&gt;&lt;SPAN style="color: #1f497d; font-size: 13.3333px;"&gt;61579 &lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;The average for the 12 would be 61579, the 61579 is what we’d want displayed in the column.&amp;nbsp; The idea being, we could compare the sum of the cost for the CCG in the chart against the average sum of costs across the selections.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;But (where it gets messier), if we choose a commissioner_desc from the filter, we’d expect the average of sums to still be of the 12 ccgs, not just the ‘one’ selected and displayed in the chart.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Any Ideas please&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;best regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;Andy&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/Help-required-with-Expression/m-p/1332459#M826111</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332460#M826112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Andrew, what is commissioner_desc here? Is it somehow related to CCG? Also, is Value just Value or is it Sum(Measure)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 11:24:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332460#M826112</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-05T11:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332461#M826113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you have to nullify &lt;SPAN style="color: #1f497d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;commissioner_desc in set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Avg(&lt;/SPAN&gt; {&amp;lt;&lt;SPAN style="color: #1f497d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;commissioner_desc =&lt;/SPAN&gt;&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then It will not affect your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Arvind Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 11:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332461#M826113</guid>
      <dc:creator>arvind_patil</dc:creator>
      <dc:date>2017-07-05T11:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332462#M826115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to throw out an idea, may be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg(TOTAL &amp;lt;programme_category&amp;gt; Aggr(Sum({&amp;lt;commissioner_desc&amp;gt;}Measure), CCG, programme_category))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 11:25:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332462#M826115</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-05T11:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332463#M826116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry, they are the same thing! Whoops! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 11:25:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332463#M826116</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-07-05T11:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332464#M826118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And is Value a field or an expression?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 11:26:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332464#M826118</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-05T11:26:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332465#M826120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it the REAL dashboard it's a pretty messy expression, but in this example it's just a value. To make it clearer, the data is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="468"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" width="146"&gt;commissioner_desc&lt;/TD&gt;&lt;TD class="xl65" width="198"&gt;programme_category&lt;/TD&gt;&lt;TD class="xl65" width="124"&gt;Value&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;00T&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;30607&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;00V&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;80011&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;00W&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;2274&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;00Y&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;48864&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;01D&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;91356&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;01G&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;121482&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;01M&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;114102&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;01N&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;10377&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;01W&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;75541&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;01Y&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;27386&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;02A&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;3720&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="21"&gt;02H&lt;/TD&gt;&lt;TD class="xl67"&gt;Adverse effects and posioning&lt;/TD&gt;&lt;TD class="xl63"&gt;133236&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 11:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332465#M826120</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-07-05T11:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332466#M826121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess replace your expression with this&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Avg(TOTAL &amp;lt;programme_category&amp;gt; Aggr(&lt;SPAN style="color: #ff0000;"&gt;Sum({&amp;lt;commissioner_desc&amp;gt;}Measure)&lt;/SPAN&gt;, CCG, programme_category))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace the red part with your original expression....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 11:37:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332466#M826121</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-05T11:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332467#M826123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry still not getting it, example qvw attached&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 12:01:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332467#M826123</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-07-05T12:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332468#M826125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Avg({&amp;lt;commissioner_code&amp;gt;} TOTAL &amp;lt;programme_category&amp;gt; Aggr(Sum({&amp;lt;commissioner_code&amp;gt;}Value), commissioner_code, programme_category)) * Avg(1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 12:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332468#M826125</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-05T12:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332469#M826126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice one Sunny, not surprised it was causing a brain explosion! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jul 2017 12:10:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332469#M826126</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-07-05T12:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332470#M826128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again for the solution, but cpildyou break down and explain how the expression actually works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 08:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332470#M826128</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-07-06T08:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332471#M826129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I basically I am summing the value for each commissioner_code and programme_Category and ignoring the selection in &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code&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;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;commissioner_code&amp;gt;}Value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next we needed the Avg across all the &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code, so used TOTAL Qualifier with the field name yet again ignoring selection in &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code.&lt;/SPAN&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;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Avg({&amp;lt;commissioner_code&amp;gt;} TOTAL &amp;lt;programme_category&amp;gt; Aggr(Sum({&amp;lt;commissioner_code&amp;gt;}Value), commissioner_code, programme_category))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, since I am ignoring selection in &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code, any selection in &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code will keep showing all the rows. In order to only show the single selected row, but still show the overall average, I multiplied it with Avg(1). Avg(1) will equal 1 for selected &lt;SPAN style="font-size: 13.3333px;"&gt;commissioner_code and will equal 0 for all other making them all 0.&lt;/SPAN&gt;&lt;/SPAN&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;Does this help?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 09:00:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332471#M826129</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-07-06T09:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help required with Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332472#M826130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Superb!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 09:31:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-required-with-Expression/m-p/1332472#M826130</guid>
      <dc:creator>awhitfield</dc:creator>
      <dc:date>2017-07-06T09:31:46Z</dc:date>
    </item>
  </channel>
</rss>

