<?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: Need help in calculation in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Need-help-in-calculation/m-p/1273442#M26249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could filter the months with a bit of set analysis if you have a numeric month field. sum(&lt;STRONG&gt;{&amp;lt;Month={"=Mod(Month,3)=0"}&amp;gt;}&lt;/STRONG&gt;X).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Dec 2016 09:59:32 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-12-07T09:59:32Z</dc:date>
    <item>
      <title>Need help in calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-in-calculation/m-p/1273439#M26246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table where my&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; "Column 1" dimension in Rows&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; "Quarter"&amp;nbsp; dimension in Column. This changes dynamically based the date selected.It will&amp;nbsp; always display 3 quarters. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Date &amp;gt;='$(vRolling3QtrStartDate)' and Date&amp;lt;= '$&lt;SPAN style="font-size: 13.3333px;"&gt;vRolling3QtrEndDate)', Quarter)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;3.&amp;nbsp;&amp;nbsp;&amp;nbsp; Measure is an calculation =&amp;nbsp; Sum(X)/Sum(total(X).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 256px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="19" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl63" width="64"&gt;Q1&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Q2&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="64"&gt;Q3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19"&gt;XYZ1&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2%&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;1%&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;XYZ2&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5%&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;7%&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;6%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;XYZ3&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;10%&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;8%&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;8%&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl63" height="19" style="border-top: none;"&gt;XYZ4&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;3%&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;2%&lt;/TD&gt;&lt;TD align="right" class="xl64" style="border-top: none; border-left: none;"&gt;5%&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help in calculating my measure,&amp;nbsp; where i&amp;nbsp; can display the measure as a Weighted Average of all the 3 months that falls under particular quarter. Say suppose if I select a date 11/25/2016. I will display 3 completed quarters as Q1, Q2, Q3 of 2016.&lt;/P&gt;&lt;P&gt;and i want the measure for Q1 and XYZ1 combination as weighted average of all the 3 months that fall under that Q1.&lt;/P&gt;&lt;P&gt;Any ideas or suggestions? I hope i haven't confused.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 21:32:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-in-calculation/m-p/1273439#M26246</guid>
      <dc:creator>spavankumar1980</dc:creator>
      <dc:date>2016-12-02T21:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-in-calculation/m-p/1273440#M26247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Perhaps this: avg(aggr(Sum(X)/Sum(total X),Month, [Column 1]). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Make sure to use the correct field names; Month and [Column 1] are just examples based on what you posted.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Dec 2016 10:05:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-in-calculation/m-p/1273440#M26247</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-04T10:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-in-calculation/m-p/1273441#M26248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However there is a some change in the requirement itself now. Instead of displaying the weighted average of the measure for the months that are falling under that particular quarter, now&amp;nbsp; i need to display the measure value only for the last month of that particular quarter. Ex: In Q1 i need to display the value of March, for &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Q2&amp;nbsp; it is June, Q3 it is September and Q4&amp;nbsp; it is December. Any ideas.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Dec 2016 14:33:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-in-calculation/m-p/1273441#M26248</guid>
      <dc:creator>spavankumar1980</dc:creator>
      <dc:date>2016-12-06T14:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Need help in calculation</title>
      <link>https://community.qlik.com/t5/App-Development/Need-help-in-calculation/m-p/1273442#M26249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could filter the months with a bit of set analysis if you have a numeric month field. sum(&lt;STRONG&gt;{&amp;lt;Month={"=Mod(Month,3)=0"}&amp;gt;}&lt;/STRONG&gt;X).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Dec 2016 09:59:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Need-help-in-calculation/m-p/1273442#M26249</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-12-07T09:59:32Z</dc:date>
    </item>
  </channel>
</rss>

