<?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: Trouble with an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Trouble-with-an-expression/m-p/336336#M1171770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, as I'm only a new to QV I think that is going to be too advanced for me at the moment, but I was thinking along the same lines which is promising.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway to solve the problem, I've created a duplicate table, hidden all the columns except site name and cost, limited the number of rows to 3 and sorting show it shows the top 3 sites as well as the total cost of non-compliance.&lt;/P&gt;&lt;P&gt;I think this will work &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;Can I do a set analysis on this expression, so I can show the total regardless of the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Rank &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(cost)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jul 2012 15:36:36 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-07-06T15:36:36Z</dc:date>
    <item>
      <title>Trouble with an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-an-expression/m-p/336334#M1171768</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;Continuing my love hate relationship with QlikView I can't seem to work out something....&lt;/P&gt;&lt;P&gt;Basically I'm loading in a data like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Site1, CCS1, dd/mm/yy&lt;/P&gt;&lt;P&gt;Site1, CCS2, dd/mm/yy&lt;/P&gt;&lt;P&gt;etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then adding up all the scores to give me a total which is then multipled to give a financial value - hopefully you can see that on the attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've managed to work out a figure that gives me the cost of non-compliance (shown on table as Prediction minus Subsistence £13,132.35) but I can't seem to replicate this in a text box to make the figure stand out - how on earth can I copy this expression without showing all the individual site totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 14:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-an-expression/m-p/336334#M1171768</guid>
      <dc:creator />
      <dc:date>2012-07-05T14:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-an-expression/m-p/336335#M1171769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to do this using advanced aggregation, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=sum( aggr( YOUREXPRESSION, Site))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;But&lt;/SPAN&gt;, YOUREXPRESSION is really complex in your case, since you are referencing another expression in your column expression which is referencing another expression, which is referencing ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try embedding all these expressions into one biiiig expression, or maybe try simplyfying your expressions (maybe by precalculating as much as possible in the script).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 15:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-an-expression/m-p/336335#M1171769</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-07-05T15:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Trouble-with-an-expression/m-p/336336#M1171770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, as I'm only a new to QV I think that is going to be too advanced for me at the moment, but I was thinking along the same lines which is promising.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway to solve the problem, I've created a duplicate table, hidden all the columns except site name and cost, limited the number of rows to 3 and sorting show it shows the top 3 sites as well as the total cost of non-compliance.&lt;/P&gt;&lt;P&gt;I think this will work &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;Can I do a set analysis on this expression, so I can show the total regardless of the selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Rank &lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;TOTAL&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(cost)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 15:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Trouble-with-an-expression/m-p/336336#M1171770</guid>
      <dc:creator />
      <dc:date>2012-07-06T15:36:36Z</dc:date>
    </item>
  </channel>
</rss>

