<?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 Expression calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-calculation/m-p/426810#M484852</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;i would apreciate any help on this matter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1:&lt;/P&gt;&lt;P&gt;PP, Artikl, SalesID, Salesamount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;PP, SalesID, Salesamount, Refer on SalesID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What i need:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I need an new chart table with PP, salesamount, number of Sales IDs but &lt;SPAN style="text-decoration: underline;"&gt;only&lt;/SPAN&gt; for sales IDs with sum(salesamount) &amp;gt;300&lt;/P&gt;&lt;P&gt;2. Br. specifikacija should show Count(Distinct SalesIDs) that are &amp;gt;300 and SalesIDs that where refunded (the sum Salesamount should after the refund be still &amp;gt;300)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F. ex. in the table "kalkulacija" you see that SALESID 868686 is a refund of InvoiceID "od Fakture" 11718-05-1. The formula needs to calculate for every salesID if there was a refund and then with it check the sum(salesamount) if &amp;gt;300. And the refund column should show -358.68 on SalesID 868664.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure the formula in table "result" is wrong and i am something missing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example PP NR: 211302 should have in table result. Promet 338.68 and Br. specifikacija 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File attached, thank you in advance. I hope somebody can help me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 May 2013 08:45:20 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-06T08:45:20Z</dc:date>
    <item>
      <title>Expression calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-calculation/m-p/426810#M484852</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;i would apreciate any help on this matter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 tables &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1:&lt;/P&gt;&lt;P&gt;PP, Artikl, SalesID, Salesamount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;PP, SalesID, Salesamount, Refer on SalesID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What i need:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I need an new chart table with PP, salesamount, number of Sales IDs but &lt;SPAN style="text-decoration: underline;"&gt;only&lt;/SPAN&gt; for sales IDs with sum(salesamount) &amp;gt;300&lt;/P&gt;&lt;P&gt;2. Br. specifikacija should show Count(Distinct SalesIDs) that are &amp;gt;300 and SalesIDs that where refunded (the sum Salesamount should after the refund be still &amp;gt;300)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;F. ex. in the table "kalkulacija" you see that SALESID 868686 is a refund of InvoiceID "od Fakture" 11718-05-1. The formula needs to calculate for every salesID if there was a refund and then with it check the sum(salesamount) if &amp;gt;300. And the refund column should show -358.68 on SalesID 868664.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sure the formula in table "result" is wrong and i am something missing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example PP NR: 211302 should have in table result. Promet 338.68 and Br. specifikacija 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File attached, thank you in advance. I hope somebody can help me. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 08:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-calculation/m-p/426810#M484852</guid>
      <dc:creator />
      <dc:date>2013-05-06T08:45:20Z</dc:date>
    </item>
  </channel>
</rss>

