<?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 Cycle group -Global Calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Cycle-group-Global-Calculation/m-p/472416#M176412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have the following issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wish to calculate the differrence between Listprice and Base Price articles. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;every article has a Base price attached to it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e 100090001 - 19 Euro BasePrice (per unit)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; 17,5 ListPrice (Netsales / Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is of course no problem , [ListPrice (Sek)] - [BaseListPrice (Sek)] / BaseListPrice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However where it gets tricky is when you cycle through the fields in the table to Customer. IF you do not select an Article you get no calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wish to perform this calculation for Customer, Year and so Forth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what i am looking for is a calculation which can selects all articles and does the calculation. I have made an attempt below without luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(([Net Sales&lt;/P&gt;&lt;P&gt;(SEK)] * Qty) / ([BaselistPrice(SEK)] * Qty)),[Item number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have attached a sampledataset to help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 18 May 2013 16:34:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-05-18T16:34:18Z</dc:date>
    <item>
      <title>Cycle group -Global Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-group-Global-Calculation/m-p/472416#M176412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i have the following issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wish to calculate the differrence between Listprice and Base Price articles. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;every article has a Base price attached to it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e 100090001 - 19 Euro BasePrice (per unit)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp; 17,5 ListPrice (Netsales / Qty)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is of course no problem , [ListPrice (Sek)] - [BaseListPrice (Sek)] / BaseListPrice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However where it gets tricky is when you cycle through the fields in the table to Customer. IF you do not select an Article you get no calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i wish to perform this calculation for Customer, Year and so Forth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So what i am looking for is a calculation which can selects all articles and does the calculation. I have made an attempt below without luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(([Net Sales&lt;/P&gt;&lt;P&gt;(SEK)] * Qty) / ([BaselistPrice(SEK)] * Qty)),[Item number])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have attached a sampledataset to help. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 May 2013 16:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-group-Global-Calculation/m-p/472416#M176412</guid>
      <dc:creator />
      <dc:date>2013-05-18T16:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Cycle group -Global Calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Cycle-group-Global-Calculation/m-p/472417#M176413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to aggregate [BaseListPrice (Sek)]. You'll have to figure out what (BaseListprice * ExchangerateEUR) has to mean at the levels of the dimensions in your group. I have no idea what makes more sense, sum(BaseListprice * ExchangerateEUR) or avg(BaseListprice * ExchangerateEUR) or something else. You know your data so you'll have to decide what aggregation function is appropriate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 May 2013 18:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Cycle-group-Global-Calculation/m-p/472417#M176413</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-05-18T18:00:31Z</dc:date>
    </item>
  </channel>
</rss>

