<?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: Monthly to Weekly Targets in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576289#M683359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul, Firstly, you dont have the Weekly Target values. But you need to show weekly Targets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you need to break down Monthly Target into Dialy by divide the Target Value with no of days. Try Like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the Calender and Join the target Table on Starting of the Month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Mar 2014 01:36:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-03-15T01:36:10Z</dc:date>
    <item>
      <title>Monthly to Weekly Targets</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576284#M683354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a Target table with the fields TargetMonth, TargetYear &amp;amp; TargetValue. I use&amp;nbsp;&amp;nbsp; TargetYear &amp;amp; '-' &amp;amp; TargetMonth &amp;amp;&amp;nbsp; 01 00:00:000' As TargetDate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to find some way to take the Monthly Target total to a Weekly Value to display the target Value using a WeekCommencing Date within a straight Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to do this in the load script to have a WeekTarget field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Completely stuck on where to start with this one and would appreciate a steer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 14:40:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576284#M683354</guid>
      <dc:creator>pauledrich</dc:creator>
      <dc:date>2014-03-14T14:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly to Weekly Targets</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576285#M683355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two ways to handle this situation:&lt;/P&gt;&lt;P&gt;1) With the help of set analysis.&lt;/P&gt;&lt;P&gt;2) create a variable in the load script and use the date time functions like Year() or Month() or Week() and use this variable value in your expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 14:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576285#M683355</guid>
      <dc:creator />
      <dc:date>2014-03-14T14:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly to Weekly Targets</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576286#M683356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't you have Master Calendar in you script?&lt;/P&gt;&lt;P&gt;This can solver your problem.&lt;/P&gt;&lt;P&gt;IF possible, create a sample file and let us have it with your required end result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 15:07:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576286#M683356</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2014-03-14T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly to Weekly Targets</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576287#M683357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Sai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Week Commencing dates as the dimension and do have a master calendar,&amp;nbsp; due to the dimension I need to use I can only see targets for those weeks where the 1st of each month falls. Ideally I would like to create a script which would take the monthly target/days within the month&amp;nbsp; and apply this to each day of the week / Date. this would then accommodate month ends part through the week.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 15:53:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576287#M683357</guid>
      <dc:creator>pauledrich</dc:creator>
      <dc:date>2014-03-14T15:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly to Weekly Targets</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576288#M683358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done this sort of thing several times and generally take this sort of approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load your data&lt;/P&gt;&lt;P&gt;Build a daily calendar - include a field called something like daysinmonth&lt;/P&gt;&lt;P&gt;Link your data in to the calendar - e.g. each row in your data is linked to a whole months worth of calendar entries&lt;/P&gt;&lt;P&gt;Then, your daily calculation would be (value * days) / daysinmonth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 16:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576288#M683358</guid>
      <dc:creator>marcus_malinow</dc:creator>
      <dc:date>2014-03-14T16:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly to Weekly Targets</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576289#M683359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul, Firstly, you dont have the Weekly Target values. But you need to show weekly Targets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you need to break down Monthly Target into Dialy by divide the Target Value with no of days. Try Like below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the Calender and Join the target Table on Starting of the Month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 01:36:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576289#M683359</guid>
      <dc:creator />
      <dc:date>2014-03-15T01:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Monthly to Weekly Targets</title>
      <link>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576290#M683360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the script I have which I am now attempting to create the null values, however I am creating a synthetic key and also the dates are not working as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a simpler way to achieve a Target Value against each date?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TempTable_Target: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BranchCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TargetDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Target&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident MonthlyTargets ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MinMaxDate:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min(TargetDate) as MinDate, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Max(TargetDate) as MaxDate &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resident TempTable_Target;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vMinDate = Peek('MinDate',-1,'MinMaxDate') - 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Let vMaxDate = Peek('MaxDate',-1,'MinMaxDate')&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Drop Table MinMaxDate;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; Join (TempTable_Target)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(recno()+$(vMinDate)) as TargetDate &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Autogenerate vMaxDate - vMinDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthlyTargets:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NoConcatenate&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BranchCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TargetDate, &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( IsNull( Target), Peek( Target ), Target) as Target&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Resident TempTable_Target&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Order By BranchCode, TargetDate ; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Drop Table TempTable_Target;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Mar 2014 12:32:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Monthly-to-Weekly-Targets/m-p/576290#M683360</guid>
      <dc:creator>pauledrich</dc:creator>
      <dc:date>2014-03-17T12:32:43Z</dc:date>
    </item>
  </channel>
</rss>

