<?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: Very Complex Calculation - need help!!! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Very-Complex-Calculation-need-help/m-p/394166#M490374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selects "Qtr to March 2012" as the period, what do you need to see as the output chart?&lt;/P&gt;&lt;P&gt;I assume you need to see a straight chart, but could you pls. write what exactly it should display as result?&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;&lt;A class="loading" href="http://www.google.com/analytics/" title="http://www.google.com/analytics/"&gt;http://www.google.com/analytics/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2012 03:48:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-10T03:48:05Z</dc:date>
    <item>
      <title>Very Complex Calculation - need help!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Very-Complex-Calculation-need-help/m-p/394165#M490373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; There’s a very complex problem that I have been trying to&lt;BR /&gt;solve in Qlikview and hitting a brick wall. So Please help!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To simplify let’s assume I have following fields:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="23152" class="jive-image" alt="a.JPG" src="https://community.qlik.com/legacyfs/online/23152_a.JPG" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There could be 1000 assets and data goes back to last 15&lt;BR /&gt;years or so.&amp;nbsp; I want to calculate &lt;STRONG style="text-decoration: underline;"&gt;Ratio&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User can only select one period i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qtr to March 2011&lt;/P&gt;&lt;P&gt;Qtr to June 2011&lt;/P&gt;&lt;P&gt;Qtr to Sept 2011&lt;/P&gt;&lt;P&gt;Qtr to Dec 2011&lt;/P&gt;&lt;P&gt;Qtr to March 2012&lt;/P&gt;&lt;P&gt;Qtr to June 2012&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;6 months to June 2011&lt;/P&gt;&lt;P&gt;Year to June 2011 (going back last 6 months)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried set analysis but to no avail.&amp;nbsp; &lt;SPAN style="color: #800000;"&gt;My last resort is writing a macro&lt;/SPAN&gt;. But I don’t know whether I can use set analysis in a macro. &lt;BR /&gt;Also &lt;STRONG&gt;how do I access particular rows of data in a macro&lt;/STRONG&gt;? For example I can load this data into a tablebox but how do I access a particular row or value?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2012 12:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-Complex-Calculation-need-help/m-p/394165#M490373</guid>
      <dc:creator />
      <dc:date>2012-10-09T12:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Very Complex Calculation - need help!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Very-Complex-Calculation-need-help/m-p/394166#M490374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the user selects "Qtr to March 2012" as the period, what do you need to see as the output chart?&lt;/P&gt;&lt;P&gt;I assume you need to see a straight chart, but could you pls. write what exactly it should display as result?&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;&lt;A class="loading" href="http://www.google.com/analytics/" title="http://www.google.com/analytics/"&gt;http://www.google.com/analytics/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 03:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-Complex-Calculation-need-help/m-p/394166#M490374</guid>
      <dc:creator />
      <dc:date>2012-10-10T03:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Very Complex Calculation - need help!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Very-Complex-Calculation-need-help/m-p/394167#M490375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just need to calculate the numbers. No charts. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Sent from iPhone.  Please excuse brevity and spellings)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 06:55:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-Complex-Calculation-need-help/m-p/394167#M490375</guid>
      <dc:creator />
      <dc:date>2012-10-10T06:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Very Complex Calculation - need help!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Very-Complex-Calculation-need-help/m-p/394168#M490376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what Bilge is asking is what you expect the output to be, and a Straight Chart is a spreadsheet-like object.&amp;nbsp; I think what you need to do here is use a something like "...(Max(Field)-1) in your set analysis.&amp;nbsp; Your expression would be something like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max(Field) / (Max(Field)-1)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have the exact sytax, but here is an example of something I've used....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((Sum({$&amp;lt; BookedYear={$(=Max(BookedYear))}&amp;gt;}&amp;nbsp; (ORDERED_QUANTITY*UNIT_SELLING_PRICE))) &lt;/P&gt;&lt;P&gt;&amp;nbsp; /&lt;/P&gt;&lt;P&gt; (Sum({$&amp;lt; BookedYear={$(=Max(BookedYear)-1)}&amp;gt;}&amp;nbsp; (ORDERED_QUANTITY*UNIT_SELLING_PRICE)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also use the Month field to create a field that indicates what Quarter it is, so you can select Q2, and year 2012.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 16:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-Complex-Calculation-need-help/m-p/394168#M490376</guid>
      <dc:creator>hallquist_nate</dc:creator>
      <dc:date>2012-10-10T16:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Very Complex Calculation - need help!!!</title>
      <link>https://community.qlik.com/t5/QlikView/Very-Complex-Calculation-need-help/m-p/394169#M490377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;STRONG&gt;top(column(2), Total 4)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means: starting from top, column 2 row nº 4. the total modifier is to avoid reseting when changing 2nd dimension.&lt;/P&gt;&lt;P&gt;In your table, Year 2011, month apr, value=400&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read inter-record functions for tables. They are lots of combinations. try them and see what's best for you. They are bottom, first, last, above, below, rowno, columnno, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do with a macro if you want to extract any value from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I posted Any value, any cell, anywhere long ago but they took it away when they changed the site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 16:36:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Very-Complex-Calculation-need-help/m-p/394169#M490377</guid>
      <dc:creator>christian77</dc:creator>
      <dc:date>2012-10-10T16:36:15Z</dc:date>
    </item>
  </channel>
</rss>

