<?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: Daily figure to apply on Monthly database in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409831#M426484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum([Rebate rate])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL [Rebate rate])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Sep 2017 17:59:03 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-09-13T17:59:03Z</dc:date>
    <item>
      <title>Daily figure to apply on Monthly database</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409830#M426483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help regarding below issue :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have two database :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First one is a sale database per date and part number.&lt;/P&gt;&lt;P&gt;Fields are :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date&lt;/P&gt;&lt;P&gt;Part Number&lt;/P&gt;&lt;P&gt;Sales&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/176467_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;i have a second database showing a sales rebate that has to be applied to the dedicated month : for instance a rebate of 2 % has to be applied on all January sales. The tricky point here is that the key between the two tables is a day field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if 2 % is linked to 31/01/2017, it has to apply to all items sold in January.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/176466_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue i am facing is that when i build a table showing the sales (including the rebate) per part number, i only got the items sold the same day as linked with the rebate, ie 31/01/2017 for January month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output i get is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-6" src="https://community.qlik.com/legacyfs/online/176470_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;Although what i shall get is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="image-5 jive-image" src="https://community.qlik.com/legacyfs/online/176469_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached are .qvw and excel database for the ones you could help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 17:43:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409830#M426483</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-09-13T17:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Daily figure to apply on Monthly database</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409831#M426484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Replace&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum([Rebate rate])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(TOTAL [Rebate rate])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 17:59:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409831#M426484</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-13T17:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Daily figure to apply on Monthly database</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409832#M426485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just perfect &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 18:02:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409832#M426485</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-09-13T18:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Daily figure to apply on Monthly database</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409833#M426486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you're still there, how would you write in a text object the formulas showing YTD total rebate ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;January rebates are 1,18&lt;/P&gt;&lt;P&gt;February rebates are 2.7&lt;/P&gt;&lt;P&gt;March rebate are 0.21&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the text object should show :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3,88 if February is selected or 4.09 is March is selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking of below formulas but the output is not at all what i should get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RangeSum(Above(Sum({$&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date(YearStart(Max(Date)), 'DD/MM/YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date), 'DD/MM/YYYY'))"}, Mois, [Année]&amp;gt;}Sales), 0, RowNo()))&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;RangeSum(Above(Sum(TOTAL{$&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date(YearStart(Max(Date)), 'DD/MM/YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date), 'DD/MM/YYYY'))"}, Mois, [Année]&amp;gt;}Sales), 0, RowNo()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 10:05:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409833#M426486</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-09-14T10:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Daily figure to apply on Monthly database</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409834#M426487</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({$&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date(YearStart(Max(Date)), 'DD/MM/YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date), 'DD/MM/YYYY'))"}, Mois, [Année]&amp;gt;}Aggr(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date(YearStart(Max(Date)), 'DD/MM/YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date), 'DD/MM/YYYY'))"}, Mois, [Année]&amp;gt;}Sales) *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({$&amp;lt;Date = {"$(='&amp;gt;=' &amp;amp; Date(YearStart(Max(Date)), 'DD/MM/YYYY') &amp;amp; '&amp;lt;=' &amp;amp; Date(Max(Date), 'DD/MM/YYYY'))"}, Mois, [Année]&amp;gt;}TOTAL &amp;lt;Année_Mois&amp;gt; [Rebate rate]), [Part Number], Année_Mois))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:13:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409834#M426487</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-09-14T11:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Daily figure to apply on Monthly database</title>
      <link>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409835#M426488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guillaume&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2017 11:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Daily-figure-to-apply-on-Monthly-database/m-p/1409835#M426488</guid>
      <dc:creator>guillaume_gorli</dc:creator>
      <dc:date>2017-09-14T11:15:27Z</dc:date>
    </item>
  </channel>
</rss>

