<?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: Distributing Sales across Days in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/867001#M998533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that you got sales on a daily basis, you link your Date field with a calendar, and use the calendar field as dimension to group your sales date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14348945597847793" jivemacro_uid="_14348945597847793"&gt;
&lt;P&gt;Sales:&lt;/P&gt;
&lt;P&gt;LOAD //Month, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; //MonthlySales, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date(Month+iterno()-1) as Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MonthlySales / NumDaysInMonth as DailySales&lt;/P&gt;
&lt;P&gt;while iterno() &amp;lt;= NumDaysInMonth;&lt;/P&gt;
&lt;P&gt;LOAD date#(Month,'YYYY-MMM') as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sales as MonthlySales,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; day(monthend(date#(Month,'YYYY-MMM'))) as NumDaysInMonth&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;Month, Sales&lt;/P&gt;
&lt;P&gt;2015-Jan, 2000&lt;/P&gt;
&lt;P&gt;2015-Feb, 2000&lt;/P&gt;
&lt;P&gt;2015-Mar, 2500&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Calendar:&lt;/P&gt;
&lt;P&gt;LOAD Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MonthName(Date) as MonthName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WeekYear(Date) &amp;amp; '-' &amp;amp; Week(Date) as Week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Year(Date) as Year&lt;/P&gt;
&lt;P&gt;RESIDENT Sales;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jun 2015 13:49:24 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-06-21T13:49:24Z</dc:date>
    <item>
      <title>Distributing Sales across Days</title>
      <link>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/866996#M998528</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 have a monthly sales data and i want to distribute the sales across days.For example: If sales for Jan month is 5000,I want to distribute&amp;nbsp; it across 31 days likewise for all the months i have to distribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do that??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;VR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 09:33:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/866996#M998528</guid>
      <dc:creator>Vinothishere</dc:creator>
      <dc:date>2015-06-21T09:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Distributing Sales across Days</title>
      <link>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/866997#M998529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best way to do it is to create the Drill Down group&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to chart Properties-&amp;gt; Dimension-&amp;gt; Edit group and create a Drill Down group. Add Month and Day dimension in group.&lt;/P&gt;&lt;P&gt;Use this drill down group as dimension of chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will create the month wise chart and when you click on any Bar of month it will drill down to day level&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/90151_Untitled.jpg" style="height: 386px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 10:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/866997#M998529</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-06-21T10:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Distributing Sales across Days</title>
      <link>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/866998#M998530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14348834970531325" jivemacro_uid="_14348834970531325"&gt;
&lt;P&gt;LOAD Month, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; MonthlySales, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date(Month+iterno()-1) as Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MonthlySales / NumDaysInMonth as DailySales&lt;/P&gt;
&lt;P&gt;while iterno() &amp;lt;= NumDaysInMonth;&lt;/P&gt;
&lt;P&gt;LOAD date#(Month,'YYYY-MMM') as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sales as MonthlySales,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; day(monthend(date#(Month,'YYYY-MMM'))) as NumDaysInMonth&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;Month, Sales&lt;/P&gt;
&lt;P&gt;2015-Jan, 2000&lt;/P&gt;
&lt;P&gt;2015-Feb, 2000&lt;/P&gt;
&lt;P&gt;2015-Mar, 2500&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 10:45:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/866998#M998530</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-21T10:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Distributing Sales across Days</title>
      <link>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/866999#M998531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinoth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sounds like you want to make sure that e.g. average values include those days , which have Zero sales?&lt;/P&gt;&lt;P&gt;Like swuehl suggested, you then need a loop to create a structure you can relate your data to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael Tarallo has uploaded an excellent Video on master calendars &lt;A href="https://community.qlik.com/docs/DOC-8642"&gt;Understanding the Master Calendar (video)&lt;/A&gt; which I recommend viewing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also suggest left joining a table with public holidays to your master calender, so you can flag out these dates if needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Boris &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 10:56:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/866999#M998531</guid>
      <dc:creator />
      <dc:date>2015-06-21T10:56:46Z</dc:date>
    </item>
    <item>
      <title>Re: Distributing Sales across Days</title>
      <link>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/867000#M998532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its working fine thank you and now i want to calculate the weekly sales from this,how to calculate weekly sales?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 13:24:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/867000#M998532</guid>
      <dc:creator>Vinothishere</dc:creator>
      <dc:date>2015-06-21T13:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Distributing Sales across Days</title>
      <link>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/867001#M998533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that you got sales on a daily basis, you link your Date field with a calendar, and use the calendar field as dimension to group your sales date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14348945597847793" jivemacro_uid="_14348945597847793"&gt;
&lt;P&gt;Sales:&lt;/P&gt;
&lt;P&gt;LOAD //Month, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; //MonthlySales, &lt;/P&gt;
&lt;P&gt;&amp;nbsp; Date(Month+iterno()-1) as Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MonthlySales / NumDaysInMonth as DailySales&lt;/P&gt;
&lt;P&gt;while iterno() &amp;lt;= NumDaysInMonth;&lt;/P&gt;
&lt;P&gt;LOAD date#(Month,'YYYY-MMM') as Month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Sales as MonthlySales,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; day(monthend(date#(Month,'YYYY-MMM'))) as NumDaysInMonth&lt;/P&gt;
&lt;P&gt;INLINE [&lt;/P&gt;
&lt;P&gt;Month, Sales&lt;/P&gt;
&lt;P&gt;2015-Jan, 2000&lt;/P&gt;
&lt;P&gt;2015-Feb, 2000&lt;/P&gt;
&lt;P&gt;2015-Mar, 2500&lt;/P&gt;
&lt;P&gt;]&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Calendar:&lt;/P&gt;
&lt;P&gt;LOAD Date,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; MonthName(Date) as MonthName,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; WeekYear(Date) &amp;amp; '-' &amp;amp; Week(Date) as Week,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Year(Date) as Year&lt;/P&gt;
&lt;P&gt;RESIDENT Sales;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2015 13:49:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/867001#M998533</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-21T13:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Distributing Sales across Days</title>
      <link>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/867002#M998534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 12:50:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/867002#M998534</guid>
      <dc:creator>Vinothishere</dc:creator>
      <dc:date>2015-06-23T12:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Distributing Sales across Days</title>
      <link>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/867003#M998535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your suggestion Boris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2015 14:07:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Distributing-Sales-across-Days/m-p/867003#M998535</guid>
      <dc:creator>Vinothishere</dc:creator>
      <dc:date>2015-06-23T14:07:30Z</dc:date>
    </item>
  </channel>
</rss>

