<?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: Attributing Revenue calculated Quarterly with Set Analysis to Sub Months in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Attributing-Revenue-calculated-Quarterly-with-Set-Analysis-to/m-p/1166623#M21260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps something like this:&lt;/P&gt;&lt;P&gt;Revenue contribution:&lt;/P&gt;&lt;P&gt;sum(total &amp;lt;[Drop ID]&amp;gt; Revenue) * sum([DFP Impressions]) / sum(total &amp;lt;[Drop ID]&amp;gt; [DFP Impressions])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Aug 2016 07:25:19 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2016-08-11T07:25:19Z</dc:date>
    <item>
      <title>Attributing Revenue calculated Quarterly with Set Analysis to Sub Months</title>
      <link>https://community.qlik.com/t5/App-Development/Attributing-Revenue-calculated-Quarterly-with-Set-Analysis-to/m-p/1166622#M21259</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;I have a current expression that works for a rolled up "KPI" chart object in QlikSense but is not suitable for a monthly bar chart.&lt;/P&gt;&lt;P&gt;The expression is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr((sum([DFP Impressions])/sum({1&amp;lt;[Drop ID]&amp;gt;}[DFP Impressions])*[Adbook Price]),[Drop ID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A straight table that mimicks the problems I face gives the following output for Jan and Feb&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: 384px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;DFP Reporting Month&lt;/TD&gt;&lt;TD width="64"&gt;Drop ID&lt;/TD&gt;&lt;TD width="64"&gt;Adbook Price&lt;/TD&gt;&lt;TD width="64"&gt; Revenue&lt;/TD&gt;&lt;TD width="64"&gt;Impressions&lt;/TD&gt;&lt;TD width="64"&gt;Drop Wide Imps&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Jan&lt;/TD&gt;&lt;TD align="right"&gt;1652082&lt;/TD&gt;&lt;TD align="right"&gt;2017.81&lt;/TD&gt;&lt;TD align="right"&gt;1128.514&lt;/TD&gt;&lt;TD align="right"&gt;3614&lt;/TD&gt;&lt;TD align="right"&gt;22842&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Feb&lt;/TD&gt;&lt;TD align="right"&gt;1652082&lt;/TD&gt;&lt;TD align="right"&gt;2017.81&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;9161&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Drop Wide Imps are calculated by...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(aggr(sum({1&amp;lt;[Drop ID]&amp;gt;}[DFP Impressions]),[Drop ID]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which you will notice is also used in the main revenue calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point is for a "KPI" chart object a revenue figure of £1128 is fine but for a bar chart all of it is attributed into January and zero into February.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I choose all 3 months of the quarter I get a similar scenario and again my bar chart using the same equation puts all revenue into January.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 384px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;DFP Reporting Month&lt;/TD&gt;&lt;TD width="64"&gt;Drop ID&lt;/TD&gt;&lt;TD width="64"&gt;Adbook Price&lt;/TD&gt;&lt;TD width="64"&gt; Revenue&lt;/TD&gt;&lt;TD width="64"&gt;Impressions&lt;/TD&gt;&lt;TD width="64"&gt;Drop Wide Imps&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Jan&lt;/TD&gt;&lt;TD align="right"&gt;1652082&lt;/TD&gt;&lt;TD align="right"&gt;2017.81&lt;/TD&gt;&lt;TD align="right"&gt;2017.81&lt;/TD&gt;&lt;TD align="right"&gt;3614&lt;/TD&gt;&lt;TD align="right"&gt;22842&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Feb&lt;/TD&gt;&lt;TD align="right"&gt;1652082&lt;/TD&gt;&lt;TD align="right"&gt;2017.81&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;9161&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Mar&lt;/TD&gt;&lt;TD align="right"&gt;1652082&lt;/TD&gt;&lt;TD align="right"&gt;2017.81&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;10067&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So the question is...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;How can I use Drop Wide Imps (aggregated at Drop ID level) with month by month impression data to give the revenue contribution of individual months?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Russell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 14:31:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Attributing-Revenue-calculated-Quarterly-with-Set-Analysis-to/m-p/1166622#M21259</guid>
      <dc:creator />
      <dc:date>2016-08-10T14:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Attributing Revenue calculated Quarterly with Set Analysis to Sub Months</title>
      <link>https://community.qlik.com/t5/App-Development/Attributing-Revenue-calculated-Quarterly-with-Set-Analysis-to/m-p/1166623#M21260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps something like this:&lt;/P&gt;&lt;P&gt;Revenue contribution:&lt;/P&gt;&lt;P&gt;sum(total &amp;lt;[Drop ID]&amp;gt; Revenue) * sum([DFP Impressions]) / sum(total &amp;lt;[Drop ID]&amp;gt; [DFP Impressions])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Aug 2016 07:25:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Attributing-Revenue-calculated-Quarterly-with-Set-Analysis-to/m-p/1166623#M21260</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-11T07:25:19Z</dc:date>
    </item>
  </channel>
</rss>

