<?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: set analysis to calculate a double weighted average in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89514#M5972</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I understand how you are getting 42.57...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((122,293 * 44.71) + (152,501 * 40.86)) / (122,293 + 152,501)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(5,467,720 + 6,231,191)/274,794 = 11,698,911/274,794 = 42.57&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, how are you getting 41.80? I mean what is the calculation based on the screenshot that you have shared?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2018 11:32:13 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-10-30T11:32:13Z</dc:date>
    <item>
      <title>set analysis to calculate a double weighted average</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89509#M5967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en" style="font-family: calibri, verdana, arial, sans-serif;"&gt;&lt;SPAN title="salve "&gt;Hello&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="devo calcolare una media pesata affinchè appaia nel Totale di una tabella.  "&gt;I have to calculate a weighted average to appear in the Total of a table.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="La difficoltà sta nel fatto che è la media pesata di una media pesata e la devo calcolare direttamente in una tabella tramite la set analysis.  "&gt;The difficulty lies in the fact that it is the weighted average of a weighted average and I have to calculate it directly in a table through the set analysis.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="Mi spiego meglio, nelle celle della riga devono apparire i valore della prima media pesata, ma nel totale dovrà apparire la media pesata della media calcolata nelle singole celle.  "&gt;Let me explain better, in the cells of the row must appear the value of the first weighted average, but in the total must appear the weighted average of the average calculated in the individual cells.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="Pensavo di fare una somma annidata ma non riesco a venirne a capo. "&gt;I was thinking of making a nested sum but I can not get over it.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="Allego una tabella di esempio del calcolo che devo fare.  "&gt;I enclose a sample table of the calculation that I have to do.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="In pratica ho una Dimensione per ogni riga di cui calcolo il ricavo orario sencondo delle ore tramite media pesante dei record presenti."&gt;In practice I have a Dimension for each row of which I calculate the hourly revenue of the hours through heavy average of the records present. &lt;/SPAN&gt;&lt;SPAN title="e questo valore va nelle celle delle rispettive righe."&gt;and this value goes into the cells of the respective rows. &lt;/SPAN&gt;&lt;SPAN title="Per ogni riga per ho un altra colonna, sempre ore ma con altro significato che mi servono a sua volta per calcolare il totale secondo la media pesata dei valori calcolati precedentementi.  "&gt;For each row for I have another column, always hours but with other meaning that I need in turn to calculate the total according to the weighted average of the calculated values ​​precedents.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="Allego una immagine di esempio."&gt;I enclose an example image. &lt;/SPAN&gt;&lt;SPAN title="di cui il valore che mi aspetto è 41,80€ "&gt;of which the value I expect is € 41.80&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN title="grazie in anticipo"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 08:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89509#M5967</guid>
      <dc:creator>cocuzzan</dc:creator>
      <dc:date>2018-10-30T08:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to calculate a double weighted average</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89510#M5968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample to check this out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 10:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89510#M5968</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-30T10:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to calculate a double weighted average</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89511#M5969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, but your have a simply example in jpg. i am sorry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 10:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89511#M5969</guid>
      <dc:creator>cocuzzan</dc:creator>
      <dc:date>2018-10-30T10:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to calculate a double weighted average</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89512#M5970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your simple example doesn't even specify what your dimensions are and what is your expression. I guess you need to look here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-2380"&gt;Qlik Community Tip: How to Get Answers to Your Post&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 11:02:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89512#M5970</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-30T11:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to calculate a double weighted average</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89513#M5971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;IMG alt="ex.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217075_ex.JPG" style="height: auto;" /&gt;I have only one dimension "reference"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a "total revenue" measure&lt;/SPAN&gt;&lt;BR /&gt;an "internal hours" measure&lt;BR /&gt;&lt;SPAN&gt;a "distribution hours" measure&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to calculate the weighted average revenue for the internal hours but in the total the weighted average must appear with respect to the hours of distrubizione.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the example I show you the total weighted average for the internal hours appears instead another value must appear&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the lines, on the other hand, the value must be the one weighed only for internal hours&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;follows the instruction I am using for the weighted average for the internal hours only.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I should in turn take this formula and nest it to calculate the weighted average with respect to the hours of distribution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I expect then that in the rows the value does not change while in the total I should have get € 41.80&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope it was clear.&lt;/SPAN&gt; &lt;SPAN&gt;it's difficult&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;the total revenue column is not used in the calculation&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum ({$&amp;lt; Nr_Anno_Competenza={$(vMaxAnno)},Nr_AnnoMese_Competenza={'&amp;lt;=$(vMaxMese)'}&amp;gt;}&amp;nbsp; &lt;/P&gt;&lt;P&gt;REVENUE *HH_INT )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/P&gt;&lt;P&gt;sum({$&amp;lt; Nr_Anno_Competenza={$(vMaxAnno)},Nr_AnnoMese_Competenza={'&amp;lt;=$(vMaxMese)'}&amp;gt;} HH_INT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 11:21:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89513#M5971</guid>
      <dc:creator>cocuzzan</dc:creator>
      <dc:date>2018-10-30T11:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to calculate a double weighted average</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89514#M5972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I understand how you are getting 42.57...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((122,293 * 44.71) + (152,501 * 40.86)) / (122,293 + 152,501)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(5,467,720 + 6,231,191)/274,794 = 11,698,911/274,794 = 42.57&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, how are you getting 41.80? I mean what is the calculation based on the screenshot that you have shared?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 11:32:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89514#M5972</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-30T11:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to calculate a double weighted average</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89515#M5973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;perfect .. leave now 47.50 and concentrate on the values of the lines.&lt;BR /&gt;now consider the calculated values with the HHDistribuctions&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;((40.86 * 228877) + (44.71 * 73868)) / 302745 = (9351914.22 + 3302638.28) / 302745 = 12654031.35 / 302745 = 41.80&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 11:41:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89515#M5973</guid>
      <dc:creator>cocuzzan</dc:creator>
      <dc:date>2018-10-30T11:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to calculate a double weighted average</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89516#M5974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;in practice I have to apply the second weighing to previously weighed values&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;I was thinking of making a formula like that but it does not work&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217076_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 11:43:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89516#M5974</guid>
      <dc:creator>cocuzzan</dc:creator>
      <dc:date>2018-10-30T11:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to calculate a double weighted average</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89517#M5975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000;"&gt;If(Dimensionality() = 0,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt; Nr_Anno_Competenza={$(vMaxAnno)},Nr_AnnoMese_Competenza={'&amp;lt;=$(vMaxMese)'}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #339966;"&gt;HHDistribuctions&lt;/SPAN&gt; * HH_INT)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt; Nr_Anno_Competenza={$(vMaxAnno)},Nr_AnnoMese_Competenza={'&amp;lt;=$(vMaxMese)'}&amp;gt;} &lt;SPAN style="color: #339966;"&gt;HHDistribuctions&lt;/SPAN&gt;),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt; Nr_Anno_Competenza={$(vMaxAnno)},Nr_AnnoMese_Competenza={'&amp;lt;=$(vMaxMese)'}&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #339966;"&gt;Revenue&lt;/SPAN&gt; * HH_INT)/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt; Nr_Anno_Competenza={$(vMaxAnno)},Nr_AnnoMese_Competenza={'&amp;lt;=$(vMaxMese)'}&amp;gt;} &lt;SPAN style="color: #339966;"&gt;Revenue&lt;/SPAN&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #ff0000;"&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 12:00:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89517#M5975</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-30T12:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to calculate a double weighted average</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89518#M5976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;thanks but it does not work, in practice the formula when the "Dimensionality () = 0" is wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like them as I told you the double weighing formula suggested earlier.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/217077_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 13:07:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89518#M5976</guid>
      <dc:creator>cocuzzan</dc:creator>
      <dc:date>2018-10-30T13:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis to calculate a double weighted average</title>
      <link>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89519#M5977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/people/cocuzzan"&gt;cocuzzan&lt;/A&gt;‌I want to help, but I don't think I understand your problem well enough to help. I hope someone else is able to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 13:09:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/set-analysis-to-calculate-a-double-weighted-average/m-p/89519#M5977</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-10-30T13:09:53Z</dc:date>
    </item>
  </channel>
</rss>

