<?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 How do i calculate the correct data? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-do-i-calculate-the-correct-data/m-p/1370735#M616393</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi guy's,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm looking for a way to calculate data and i'm a bit stuck in the process. I'm hoping you guys could help me out. Sales reps are entering forecast data of items they think they are going to sale (note a product group is a property of an item). So there for the situation is as follows: &lt;SPAN style="font-size: 10pt;"&gt;The data consists out of reference dates, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;were the last entry is the actual in time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;With this in mind i'm looking to create a chart with dates (for example year-week, &lt;SPAN style="font-size: 13.3333px;"&gt;year-month &lt;/SPAN&gt;or year-quarter) as dimension and the summed forecast quantity per site, per sales rep, per product group as calculated field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Example data:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Items:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load * inline&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[itemNumber, productGroup&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, wheel&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2, spoke,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3, handlebar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;4, pedal&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ForcastData:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load * inline&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[itemNumber, site, salesRep, forecastDate, quantity&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, london, jack, 01-01-2017, 5&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, london, john, 01-05-2017, 15&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, london, sandra, 01-09-2017, 2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, london, jack, 01-09-2017, 12&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, amsterdam, bill, 01-09-2017, 2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, amsterdam, bob, 01-10-2017, 15&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2, berlin, mike, 02-03-2017,50&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So the forecast for wheels in January for the site londen should be 29 (jack- 12, john, 15, sandra 2)....&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i was looking into aggr and a set analysis or something a like. Do you guy's have any suggestions??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jun 2017 14:34:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-06-14T14:34:02Z</dc:date>
    <item>
      <title>How do i calculate the correct data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-calculate-the-correct-data/m-p/1370735#M616393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi guy's,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm looking for a way to calculate data and i'm a bit stuck in the process. I'm hoping you guys could help me out. Sales reps are entering forecast data of items they think they are going to sale (note a product group is a property of an item). So there for the situation is as follows: &lt;SPAN style="font-size: 10pt;"&gt;The data consists out of reference dates, &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;were the last entry is the actual in time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;With this in mind i'm looking to create a chart with dates (for example year-week, &lt;SPAN style="font-size: 13.3333px;"&gt;year-month &lt;/SPAN&gt;or year-quarter) as dimension and the summed forecast quantity per site, per sales rep, per product group as calculated field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Example data:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Items:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load * inline&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[itemNumber, productGroup&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, wheel&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2, spoke,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;3, handlebar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;4, pedal&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ForcastData:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load * inline&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;[itemNumber, site, salesRep, forecastDate, quantity&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, london, jack, 01-01-2017, 5&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, london, john, 01-05-2017, 15&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, london, sandra, 01-09-2017, 2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, london, jack, 01-09-2017, 12&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, amsterdam, bill, 01-09-2017, 2&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;1, amsterdam, bob, 01-10-2017, 15&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2, berlin, mike, 02-03-2017,50&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;];&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;So the forecast for wheels in January for the site londen should be 29 (jack- 12, john, 15, sandra 2)....&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i was looking into aggr and a set analysis or something a like. Do you guy's have any suggestions??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 14:34:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-calculate-the-correct-data/m-p/1370735#M616393</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-14T14:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do i calculate the correct data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-calculate-the-correct-data/m-p/1370736#M616394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you add a month field in your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Items:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[itemNumber, productGroup&lt;/P&gt;&lt;P&gt;1, wheel&lt;/P&gt;&lt;P&gt;2, spoke,&lt;/P&gt;&lt;P&gt;3, handlebar&lt;/P&gt;&lt;P&gt;4, pedal&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ForcastData:&lt;/P&gt;&lt;P&gt;Load *&lt;SPAN style="color: #ff0000;"&gt;, MonthName(forecastDate) as forecastMonth&lt;/SPAN&gt; inline&lt;/P&gt;&lt;P&gt;[itemNumber, site, salesRep, forecastDate, quantity&lt;/P&gt;&lt;P&gt;1, london, jack, 01-01-2017, 5&lt;/P&gt;&lt;P&gt;1, london, john, 01-05-2017, 15&lt;/P&gt;&lt;P&gt;1, london, sandra, 01-09-2017, 2&lt;/P&gt;&lt;P&gt;1, london, jack, 01-09-2017, 12&lt;/P&gt;&lt;P&gt;1, amsterdam, bill, 01-09-2017, 2&lt;/P&gt;&lt;P&gt;1, amsterdam, bob, 01-10-2017, 15&lt;/P&gt;&lt;P&gt;2, berlin, mike, 02-03-2017,50&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following on a chart to get what you're looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimensions:&lt;/P&gt;&lt;P&gt;forecastMonth&lt;/P&gt;&lt;P&gt;site&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;sum(aggr(FirstSortedValue(quantity, -forecastDate), forecastMonth, site, salesRep))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached an example file with this, and January for London = 29.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 15:52:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-calculate-the-correct-data/m-p/1370736#M616394</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2017-06-14T15:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do i calculate the correct data?</title>
      <link>https://community.qlik.com/t5/QlikView/How-do-i-calculate-the-correct-data/m-p/1370737#M616395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you so much, i think you've been made from the stuff of legends &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This does exactly what i intended to achieve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 08:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-do-i-calculate-the-correct-data/m-p/1370737#M616395</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-15T08:12:56Z</dc:date>
    </item>
  </channel>
</rss>

