<?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 AW:Dividing budget over weeks in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dividing-budget-over-weeks/m-p/167334#M38933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;do you have a datefiled in budgettable? If yes, enter this function:&lt;/P&gt;&lt;P&gt;Week(Datefield) As Week&lt;/P&gt;&lt;P&gt;The name of the new field must be the same as the name of your Percentagetable.&lt;/P&gt;&lt;P&gt;If you want to use this tables over years, you must use the function&lt;/P&gt;&lt;P&gt;Weekname(...) because now the field will look like this: 2011/01&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Mar 2011 18:05:15 GMT</pubDate>
    <dc:creator>brenner_martina</dc:creator>
    <dc:date>2011-03-17T18:05:15Z</dc:date>
    <item>
      <title>Dividing budget over weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-budget-over-weeks/m-p/167333#M38932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with a budget per product for the whole year, another table with the % of budget for a particular week. The percentage table is read using a crosstable, no issues sofar&lt;/P&gt;&lt;P&gt;To put the 2 together, I want to end up with per product 52 weeks with the divided budget.&lt;/P&gt;&lt;P&gt;What is the way to solve this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 17:51:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-budget-over-weeks/m-p/167333#M38932</guid>
      <dc:creator />
      <dc:date>2011-03-17T17:51:04Z</dc:date>
    </item>
    <item>
      <title>AW:Dividing budget over weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-budget-over-weeks/m-p/167334#M38933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;do you have a datefiled in budgettable? If yes, enter this function:&lt;/P&gt;&lt;P&gt;Week(Datefield) As Week&lt;/P&gt;&lt;P&gt;The name of the new field must be the same as the name of your Percentagetable.&lt;/P&gt;&lt;P&gt;If you want to use this tables over years, you must use the function&lt;/P&gt;&lt;P&gt;Weekname(...) because now the field will look like this: 2011/01&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 18:05:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-budget-over-weeks/m-p/167334#M38933</guid>
      <dc:creator>brenner_martina</dc:creator>
      <dc:date>2011-03-17T18:05:15Z</dc:date>
    </item>
    <item>
      <title>Dividing budget over weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-budget-over-weeks/m-p/167335#M38934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you will get weekly budget by following formula.&lt;/P&gt;&lt;P&gt;=total_budget /((week( Weekend(Date))- week( Weekstart(Date)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 18:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-budget-over-weeks/m-p/167335#M38934</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2011-03-17T18:14:06Z</dc:date>
    </item>
    <item>
      <title>Dividing budget over weeks</title>
      <link>https://community.qlik.com/t5/QlikView/Dividing-budget-over-weeks/m-p/167336#M38935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so you have this?&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;YearlyProductBudgets:&lt;BR /&gt;year,product,budget&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;WeeklyProductBudgets:&lt;BR /&gt;year,week,product,percent&lt;/P&gt;&lt;P&gt;If you just want to do the calculation in a chart with year, week and product as dimensions:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;budget * percent&lt;/P&gt;&lt;P&gt;For other combinations of dimensions, you may need to aggregate manually.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;aggr(budget * percent,year,week,product)&lt;/P&gt;&lt;P&gt;But I suppose it'll be better to just allocate the budget in the script.&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LEFT JOIN (WeeklyProductBudgets)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT YearlyProductBudgets&lt;BR /&gt;;&lt;BR /&gt;LEFT JOIN (WeeklyProductBudgets)&lt;BR /&gt;LOAD *&lt;BR /&gt;,budget * percent as weekbudget&lt;BR /&gt;RESIDENT WeeklyProductBudgets&lt;BR /&gt;;&lt;BR /&gt;DROP TABLE YearlyProductBudgets;&lt;BR /&gt;DROP FIELDS&lt;BR /&gt; budget&lt;BR /&gt;,percent&lt;BR /&gt;;&lt;BR /&gt;RENAME FIELD weekbudget TO budget;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2011 20:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dividing-budget-over-weeks/m-p/167336#M38935</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-03-17T20:11:20Z</dc:date>
    </item>
  </channel>
</rss>

