<?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: Using aggregated values in calculations in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145855#M374933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I needed, I was approaching it from the wrong angle, using set analysis works perfectly for what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, your help is much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jun 2016 11:47:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-06-20T11:47:05Z</dc:date>
    <item>
      <title>Using aggregated values in calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145851#M374929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please help with the problem i have see the qvw attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to calculate dynamically if a customer is 'Web' or 'Offline' and then use the resulting figures for further calculation.&lt;/P&gt;&lt;P&gt;This is based on the number of Orders they have placed and where within the selected time period - if &amp;gt; 75% of orders are online they are classed as online, &amp;lt;75% = offline&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used aggregation to show the split and calculate the growth % vs previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am stuck on is how to use the results of my aggregation for further calculations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show the difference between the 2 growth figures Online = 11.56% and 55.34 to give me 43.78, but I don't know how to use these values against each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2016 18:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145851#M374929</guid>
      <dc:creator />
      <dc:date>2016-06-18T18:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregated values in calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145852#M374930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like attached?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Jun 2016 19:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145852#M374930</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-18T19:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregated values in calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145853#M374931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure where you are wanting to do this, You can also try this if you want this as the third row in the chart&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/128422_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Script Changes: Added a new Island table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * Inline [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dim&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dimension:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(Dim, IF(Aggr(SUM({&amp;lt;[Branch] ={"$(='Web')"}&amp;gt;} [CountOrders])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM([CountOrders]), [Customer]) &amp;lt; 0.75, Dual('Offline Growth', 1), Dual('Online Growth', 2)), Dual('Difference', 3))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Pick(Dim,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(SUM({&amp;lt;[Year] ={$(=MAX(Year))}&amp;gt;} Sales )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- SUM({&amp;lt;[Year] ={$(=MAX(Year)-1)}&amp;gt;} Sales )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SUM({&amp;lt;[Year] ={$(=MAX(Year)-1)}&amp;gt;} Sales ),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RangeSum(Above([Growth Yr v Yr-1], 1), -Above([Growth Yr v Yr-1], 2)))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 02:02:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145853#M374931</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-19T02:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregated values in calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145854#M374932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This gives me the figure, as an alternative way to the above solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very useful way to approach to get the answer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Help is much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 11:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145854#M374932</guid>
      <dc:creator />
      <dc:date>2016-06-20T11:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregated values in calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145855#M374933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is exactly what I needed, I was approaching it from the wrong angle, using set analysis works perfectly for what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, your help is much appreciated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 11:47:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145855#M374933</guid>
      <dc:creator />
      <dc:date>2016-06-20T11:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using aggregated values in calculations</title>
      <link>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145856#M374934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the input and help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2016 11:47:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Using-aggregated-values-in-calculations/m-p/1145856#M374934</guid>
      <dc:creator />
      <dc:date>2016-06-20T11:47:21Z</dc:date>
    </item>
  </channel>
</rss>

