<?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 problem with aggr/sum/only function on set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-aggr-sum-only-function-on-set-analysis/m-p/343840#M126948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have this health laboratory scenario :&lt;/P&gt;&lt;P&gt;1) the user click on year/month to list box.&lt;/P&gt;&lt;P&gt;2) based on upon selection i must to display on table graph :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2a)&lt;/STRONG&gt; the sum of total price analysis for month selected (the right formula is ( &lt;EM&gt;Sum(Aggr(FAbs(Sum(TOTALE)*TARIFFA), ANALISI_ANALISINAZIONALE))..&lt;/EM&gt;this work ok..).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2b) &lt;/STRONG&gt;the sum of total price analysis for previous month..in this case i try this formula : &lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Aggr( sum( FABS(sum({$&amp;lt;ANNO_accettazione={$(=Only(ANNO_accettazione)-1)}, MESE_accettazione={$(=Only(MESE_accettazione)-1)}&amp;gt;} TOTALE*TARIFFA)) ),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;only ( {$&amp;lt;ANNO_accettazione={$(=Only(ANNO_accettazione))}, MESE_accettazione={$(=Only(MESE_accettazione))}&amp;gt;}ANALISI_ANALISINAZIONALE ),ANALISI_ANALISINAZIONALE) )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;where field &lt;EM&gt;ANNO_accettazione is the Year and MESE&lt;/EM&gt;&lt;EM&gt;_accettazione is he Month.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The dimension is &lt;/EM&gt;&lt;EM&gt;ANALISI_ANALISINAZIONALE ( the analysis field)&lt;/EM&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But this formula not work.. nothing happened.. &lt;/P&gt;&lt;P&gt;Any suggestion please?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Gigi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2012 09:26:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-08T09:26:59Z</dc:date>
    <item>
      <title>problem with aggr/sum/only function on set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-aggr-sum-only-function-on-set-analysis/m-p/343840#M126948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have this health laboratory scenario :&lt;/P&gt;&lt;P&gt;1) the user click on year/month to list box.&lt;/P&gt;&lt;P&gt;2) based on upon selection i must to display on table graph :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2a)&lt;/STRONG&gt; the sum of total price analysis for month selected (the right formula is ( &lt;EM&gt;Sum(Aggr(FAbs(Sum(TOTALE)*TARIFFA), ANALISI_ANALISINAZIONALE))..&lt;/EM&gt;this work ok..).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2b) &lt;/STRONG&gt;the sum of total price analysis for previous month..in this case i try this formula : &lt;/P&gt;&lt;P&gt;&lt;EM&gt;sum(&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Aggr( sum( FABS(sum({$&amp;lt;ANNO_accettazione={$(=Only(ANNO_accettazione)-1)}, MESE_accettazione={$(=Only(MESE_accettazione)-1)}&amp;gt;} TOTALE*TARIFFA)) ),&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;only ( {$&amp;lt;ANNO_accettazione={$(=Only(ANNO_accettazione))}, MESE_accettazione={$(=Only(MESE_accettazione))}&amp;gt;}ANALISI_ANALISINAZIONALE ),ANALISI_ANALISINAZIONALE) )&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;where field &lt;EM&gt;ANNO_accettazione is the Year and MESE&lt;/EM&gt;&lt;EM&gt;_accettazione is he Month.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The dimension is &lt;/EM&gt;&lt;EM&gt;ANALISI_ANALISINAZIONALE ( the analysis field)&lt;/EM&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;But this formula not work.. nothing happened.. &lt;/P&gt;&lt;P&gt;Any suggestion please?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Gigi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2012 09:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-aggr-sum-only-function-on-set-analysis/m-p/343840#M126948</guid>
      <dc:creator />
      <dc:date>2012-06-08T09:26:59Z</dc:date>
    </item>
  </channel>
</rss>

