<?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: Re: Getting a Value from a Table with an Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-a-Value-from-a-Table-with-an-Expression/m-p/522341#M1143982</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure&lt;/P&gt;&lt;P&gt;I have added one with filter on a single worker&lt;/P&gt;&lt;P&gt;so that I will be able to supply an example as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Line i need to update is the Bonus line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Result I'm expecting to see is -&lt;/P&gt;&lt;P&gt;have a value of 0 for Nov-2012, Jan &amp;amp; Feb of 2013&lt;/P&gt;&lt;P&gt;have value of 700 for Mar, May, Jul &amp;amp; Aug of 2013&lt;/P&gt;&lt;P&gt;have a value of 200 for Apr and Jun of 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Incentive table at the moment &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Aug 2013 04:35:33 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-23T04:35:33Z</dc:date>
    <item>
      <title>Getting a Value from a Table with an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Value-from-a-Table-with-an-Expression/m-p/522339#M1143980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am a little new to Qlikview and I have a question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my Model I am Calculating a Worker productivity %&lt;/P&gt;&lt;P&gt;it is based on the amount of Goods that worker received multiply by a factor based on the Type of goods&lt;/P&gt;&lt;P&gt;divided by his Target&lt;/P&gt;&lt;P&gt;So the Expression to get the Percent goes like this&lt;/P&gt;&lt;P&gt;Sum(Qty*Factor)/MonthlyUnits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to calculate the Bonus this worker will get each month&lt;/P&gt;&lt;P&gt;this bonus is based on another table&lt;/P&gt;&lt;P&gt;that links the Level of the Worker (WorkerGrade) with the Section of the Worker (WorkerGroup)&lt;/P&gt;&lt;P&gt;&amp;lt;both are linked to the Worker Directly and both are already there on the other tables)&lt;/P&gt;&lt;P&gt;and then it give me a Table of how much productivity Percent is worth how much&amp;nbsp; &lt;/P&gt;&lt;P&gt;so the Incentive (bonus) table will be something like this&lt;/P&gt;&lt;P&gt;Level | Group | Target | Amount&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 105%&amp;nbsp; | 200&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 110%&amp;nbsp; | 300&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 120&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 700&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 110%&amp;nbsp; | 200&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 30&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 120%&amp;nbsp; | 1000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what I need is in the Table&lt;/P&gt;&lt;P&gt;that shows the Productivity % of a Worker in that month&lt;/P&gt;&lt;P&gt;to also show How much bonus it needs to get&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I need to check if the Result of my expression (Sum(Qty*Factor)/MonthlyUnits)&lt;/P&gt;&lt;P&gt;is equal or more then the Target &lt;/P&gt;&lt;P&gt;and if it is, then to bring the Amount that is linked to that Target&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* I can create a little different and make the Amount culumative if it will make it easier for a solution&lt;/P&gt;&lt;P&gt;Level | Group | Target | Amount&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 105%&amp;nbsp; | 200&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 110%&amp;nbsp; | 100&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; | 120%&amp;nbsp; | 400&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then if it is more then 105% he will get 200&lt;/P&gt;&lt;P&gt;and if it is more then 110% he will get another 100&lt;/P&gt;&lt;P&gt;and add another 400 for getting 120%&lt;/P&gt;&lt;P&gt;which come to the 700 of the previous example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't mind using either of those tables (though I prefer the first example as it is how the Client is using it at the moment)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;would appreciate help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 03:33:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Value-from-a-Table-with-an-Expression/m-p/522339#M1143980</guid>
      <dc:creator />
      <dc:date>2013-08-23T03:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting a Value from a Table with an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Value-from-a-Table-with-an-Expression/m-p/522340#M1143981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you pls attach a sample qvw file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Som&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 03:52:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Value-from-a-Table-with-an-Expression/m-p/522340#M1143981</guid>
      <dc:creator>somenathroy</dc:creator>
      <dc:date>2013-08-23T03:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Getting a Value from a Table with an Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-a-Value-from-a-Table-with-an-Expression/m-p/522341#M1143982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure&lt;/P&gt;&lt;P&gt;I have added one with filter on a single worker&lt;/P&gt;&lt;P&gt;so that I will be able to supply an example as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Line i need to update is the Bonus line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Result I'm expecting to see is -&lt;/P&gt;&lt;P&gt;have a value of 0 for Nov-2012, Jan &amp;amp; Feb of 2013&lt;/P&gt;&lt;P&gt;have value of 700 for Mar, May, Jul &amp;amp; Aug of 2013&lt;/P&gt;&lt;P&gt;have a value of 200 for Apr and Jun of 2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Incentive table at the moment &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Aug 2013 04:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-a-Value-from-a-Table-with-an-Expression/m-p/522341#M1143982</guid>
      <dc:creator />
      <dc:date>2013-08-23T04:35:33Z</dc:date>
    </item>
  </channel>
</rss>

