<?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: Calculate based on rules / selections in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-based-on-rules-selections/m-p/1146208#M375028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide some sample data with the expected output to help you better?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 12:20:13 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-07-26T12:20:13Z</dc:date>
    <item>
      <title>Calculate based on rules / selections</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-based-on-rules-selections/m-p/1146207#M375027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an app where I am calculating the number of courses of a product used by a client.&amp;nbsp; Tables are similar to below and I am calculating&amp;nbsp; Sum({&amp;lt;Target weight = {A}&amp;gt;}Quantity)/Course&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Stock table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Product &lt;/P&gt;&lt;P&gt;Target weight&amp;nbsp;&amp;nbsp; - (A or B)&lt;/P&gt;&lt;P&gt;Course&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Client Table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Client ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Client ID&lt;/P&gt;&lt;P&gt;Product&lt;/P&gt;&lt;P&gt;Quantity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A product has a target weight set at A or B - this will generally be correct&lt;/P&gt;&lt;P&gt;But occasionally a product may be used in the other target weight which would result in a different course rate&lt;/P&gt;&lt;P&gt;I need to find a way to set the target weight for a product depending on the client&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So when I select a client the product is calculated at the correct rate for the correct target weight&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that makes sense!&amp;nbsp;&amp;nbsp; Can anyone advise a way to achieve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 11:56:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-based-on-rules-selections/m-p/1146207#M375027</guid>
      <dc:creator>yvonne-c</dc:creator>
      <dc:date>2016-07-26T11:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate based on rules / selections</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-based-on-rules-selections/m-p/1146208#M375028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide some sample data with the expected output to help you better?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 12:20:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-based-on-rules-selections/m-p/1146208#M375028</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-26T12:20:13Z</dc:date>
    </item>
  </channel>
</rss>

