<?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: Calculated expression in the script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculated-expression-in-the-script/m-p/1140140#M373752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to provide 4-5 lines of input data with the expectation of the output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Sep 2016 17:30:42 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-09-03T17:30:42Z</dc:date>
    <item>
      <title>Calculated expression in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-expression-in-the-script/m-p/1140139#M373751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three fields say, A, B and C (where C is an account number). All these three fields contain numeric values(all of these have same number of digits). Now I need to calculate the "Amount" using these three fields which should satisfy the following conditions: &lt;/P&gt;&lt;P&gt;1. &lt;SPAN style="font-size: 13.3333px;"&gt;Calculate the amount &lt;/SPAN&gt;when first 4 digits of A and B are not equal, for so and so account numbers&lt;/P&gt;&lt;P&gt;2. &lt;SPAN style="font-size: 13.3333px;"&gt;Calculate the amount &lt;/SPAN&gt;for rest of the account numbers, independent of the condition that is specified in 1 (i.e. "first 4 digits of A and B not equal" should not be applied).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I write an expression or a where clause which satisfies both the conditions mentioned above for calculating the "Amount"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Sep 2016 13:23:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-expression-in-the-script/m-p/1140139#M373751</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2016-09-03T13:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated expression in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-expression-in-the-script/m-p/1140140#M373752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to provide 4-5 lines of input data with the expectation of the output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Sep 2016 17:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-expression-in-the-script/m-p/1140140#M373752</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-09-03T17:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated expression in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-expression-in-the-script/m-p/1140141#M373753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Perhaps This&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggr(If([Account number] &amp;lt;&amp;gt; left([Account number],4)),Sum(amount))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i didn't understand your 2nd Question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Sep 2016 17:31:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-expression-in-the-script/m-p/1140141#M373753</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-09-03T17:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated expression in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-expression-in-the-script/m-p/1140142#M373754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;1st condition should be applied only for specific account numbers and the 2nd condition should be applied for rest of the account numbers (i.e. it shouldn't consider the values of fields A and B). Let me know if this is clear.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 15:08:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-expression-in-the-script/m-p/1140142#M373754</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2016-09-05T15:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculated expression in the script</title>
      <link>https://community.qlik.com/t5/QlikView/Calculated-expression-in-the-script/m-p/1140143#M373755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry i can just tell that fields, A, B and C (Account Number) all have 10 digit numeric values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like,&amp;nbsp;&amp;nbsp; A = 0005003000, 0005003999 etc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; B = 0005008899, 0005002291 etc&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; Account Number = 0004300910, 0004300920 etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2016 15:52:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculated-expression-in-the-script/m-p/1140143#M373755</guid>
      <dc:creator>apoorvasd</dc:creator>
      <dc:date>2016-09-05T15:52:26Z</dc:date>
    </item>
  </channel>
</rss>

