<?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: Arithmetical operations with table total column in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Arithmetical-operations-with-table-total-column/m-p/79796#M511693</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Imponibile Expression Here, ChartDimension Here))/(Sum(Aggr(Quantità[kWh]-Perdite Expression Here, ChartDimension Here))/1000)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Mar 2018 15:49:14 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-03-23T15:49:14Z</dc:date>
    <item>
      <title>Arithmetical operations with table total column</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetical-operations-with-table-total-column/m-p/79795#M511692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;for this table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Immagine4.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197293_Immagine4.png" style="height: 197px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I have to calculate the TOTAL average price (Column called &lt;EM&gt;&lt;STRONG&gt;'Prezzo Medio'&lt;/STRONG&gt;&lt;/EM&gt;) dividing the sum of field &lt;EM&gt;&lt;STRONG&gt;'Imponibile'&lt;/STRONG&gt;&lt;/EM&gt; by the sum of field &lt;STRONG&gt;&lt;EM&gt;'Quantità[kWh]-Perdite'.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;In formula, the result of the column 'Prezzo Medio' has to be:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;5.893,7/(110.640/1.000*)=&lt;STRONG&gt;53,27&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Now, I only calculate the row divisions and aggregate them throw average, that is not the right way.&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;*1000 is a constant value for a conversion&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;Could you help me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 10:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetical-operations-with-table-total-column/m-p/79795#M511692</guid>
      <dc:creator>frank1982</dc:creator>
      <dc:date>2018-03-23T10:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetical operations with table total column</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetical-operations-with-table-total-column/m-p/79796#M511693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(Imponibile Expression Here, ChartDimension Here))/(Sum(Aggr(Quantità[kWh]-Perdite Expression Here, ChartDimension Here))/1000)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Mar 2018 15:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetical-operations-with-table-total-column/m-p/79796#M511693</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-23T15:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetical operations with table total column</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetical-operations-with-table-total-column/m-p/79797#M511694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny for the answer.&lt;/P&gt;&lt;P&gt;I tried the formula you suggest me, but it doesn't work.&lt;/P&gt;&lt;P&gt;Probably the problem is linked to the 'if' construct I have builted for the field &lt;STRONG&gt;'Imponibile' &lt;/STRONG&gt;and &lt;EM&gt;&lt;STRONG&gt;'Quantità'.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;To explain you better my project, I link you a small example (data and project).&lt;/P&gt;&lt;P&gt;Could you help me?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Franco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 10:35:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetical-operations-with-table-total-column/m-p/79797#M511694</guid>
      <dc:creator>frank1982</dc:creator>
      <dc:date>2018-03-26T10:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetical operations with table total column</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetical-operations-with-table-total-column/m-p/79798#M511695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if((Sum(CONSUMO_TOTALE_KWH)/if(Year(DATA_INIZ_FORN)&amp;lt;2017 and (Year(DATA_FINE_FORN)&amp;gt;2017 or isnull(DATA_FINE_FORN)),12,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Year(DATA_INIZ_FORN)&amp;lt;2017 and Year(DATA_FINE_FORN)=2017,Month(DATA_FINE_FORN),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Year(DATA_FINE_FORN)&amp;gt;2017 or isnull(DATA_FINE_FORN),(12-Month(DATA_INIZ_FORN)+1),(Month(DATA_FINE_FORN)-Month(DATA_INIZ_FORN)+1)))))*12&amp;lt;=10000,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(VENDITA_ENERGIA_MODULAZIONE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,FORNITORE, POD))/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if((Sum(CONSUMO_TOTALE_KWH)/if(Year(DATA_INIZ_FORN)&amp;lt;2017 and (Year(DATA_FINE_FORN)&amp;gt;2017 or isnull(DATA_FINE_FORN)),12,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Year(DATA_INIZ_FORN)&amp;lt;2017 and Year(DATA_FINE_FORN)=2017,Month(DATA_FINE_FORN),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if(Year(DATA_FINE_FORN)&amp;gt;2017 or isnull(DATA_FINE_FORN),(12-Month(DATA_INIZ_FORN)+1),(Month(DATA_FINE_FORN)-Month(DATA_INIZ_FORN)+1)))))*12&amp;lt;=10000,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOT_CONSUMO_PERDITE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,0)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;,FORNITORE, POD))*1000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/197481_Capture.PNG" style="height: 454px; width: 620px;" /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 11:36:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetical-operations-with-table-total-column/m-p/79798#M511695</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-26T11:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetical operations with table total column</title>
      <link>https://community.qlik.com/t5/QlikView/Arithmetical-operations-with-table-total-column/m-p/79799#M511696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works!!!&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Franco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Mar 2018 12:15:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Arithmetical-operations-with-table-total-column/m-p/79799#M511696</guid>
      <dc:creator>frank1982</dc:creator>
      <dc:date>2018-03-26T12:15:11Z</dc:date>
    </item>
  </channel>
</rss>

