<?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: Formulas on calculated fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Formulas-on-calculated-fields/m-p/541382#M202377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fanie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without seeing the file its difficult to grasp this issue.&amp;nbsp; Can you share the qvw please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Dec 2013 15:08:41 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-06T15:08:41Z</dc:date>
    <item>
      <title>Formulas on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Formulas-on-calculated-fields/m-p/541379#M202374</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 have the following expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Days&amp;nbsp; OoS = count(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date Decarded]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Resulting Stock]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Branch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='2002',(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Product Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now need to take the result and multiply with retail price&lt;/P&gt;&lt;P&gt;I tried "sum( [Days OoS] * [Retail Price])" and&amp;nbsp; "sum( count(&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Date Decarded]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;gt;0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;AND&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Resulting Stock]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;=0 &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Branch&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='2002',(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Product Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))) &lt;/SPAN&gt; * [Retail Price])"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does not work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fanie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 12:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulas-on-calculated-fields/m-p/541379#M202374</guid>
      <dc:creator />
      <dc:date>2013-12-06T12:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Formulas on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Formulas-on-calculated-fields/m-p/541380#M202375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please upload your sample file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 13:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulas-on-calculated-fields/m-p/541380#M202375</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2013-12-06T13:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: Formulas on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Formulas-on-calculated-fields/m-p/541381#M202376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fanie,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The problem here is that you're trying to use one aggregation function (count) within another(sum):&lt;BR /&gt;sum(count(...))&lt;BR /&gt;It is not logical, hence not working.&amp;nbsp; To make it work, you have to aggregate the internal aggregation function by some dimensions:&lt;BR /&gt;sum(&lt;STRONG&gt;aggr(&lt;/STRONG&gt;count(...)&lt;STRONG&gt;,&amp;lt;Dim1, Dim2, ...&amp;gt;)&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;I can't tell you what fields you have to aggregate by.&amp;nbsp; Try to figure it out.&amp;nbsp; Or, upload sample file, as Manish says.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 15:05:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulas-on-calculated-fields/m-p/541381#M202376</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-06T15:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Formulas on calculated fields</title>
      <link>https://community.qlik.com/t5/QlikView/Formulas-on-calculated-fields/m-p/541382#M202377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fanie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without seeing the file its difficult to grasp this issue.&amp;nbsp; Can you share the qvw please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 15:08:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Formulas-on-calculated-fields/m-p/541382#M202377</guid>
      <dc:creator />
      <dc:date>2013-12-06T15:08:41Z</dc:date>
    </item>
  </channel>
</rss>

