<?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 if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/203380#M60734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a hard time understanding what exactly you want to achieve. Could you post a sample table / sample data of the desired result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 27 Jun 2010 10:06:59 GMT</pubDate>
    <dc:creator>Or</dc:creator>
    <dc:date>2010-06-27T10:06:59Z</dc:date>
    <item>
      <title>if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/203379#M60733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The question is pretty simple, but I'm able to figure out how to resolve a problem I have.&lt;/P&gt;&lt;P&gt;Basically i'd like to sum a value when the following condition is valid:&lt;/P&gt;&lt;P&gt;sum (if (id = id - n, value))&lt;/P&gt;&lt;P&gt;where n is a number that allows me to go back nth position from the id.&lt;/P&gt;&lt;P&gt;I cannot use the previous statement because on the pivot table I can perform selections.&lt;/P&gt;&lt;P&gt;Thanks in advance for your recommendations.&lt;/P&gt;&lt;P&gt;Giulio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 09:26:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/203379#M60733</guid>
      <dc:creator />
      <dc:date>2010-06-27T09:26:41Z</dc:date>
    </item>
    <item>
      <title>if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/203380#M60734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm having a hard time understanding what exactly you want to achieve. Could you post a sample table / sample data of the desired result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 10:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/203380#M60734</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2010-06-27T10:06:59Z</dc:date>
    </item>
    <item>
      <title>if statement</title>
      <link>https://community.qlik.com/t5/QlikView/if-statement/m-p/203381#M60735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have uploaded a qv file as starting point, as my QV is huge.&lt;/P&gt;&lt;P&gt;The file contains:&lt;/P&gt;&lt;P&gt;1. a pivot table with the following:&lt;/P&gt;&lt;P&gt;- dimensions: campaign and cmp_counter_id (basically a rowno() on a sorted campaign field)&lt;/P&gt;&lt;P&gt;- fact (expression) n_app&lt;/P&gt;&lt;P&gt;2. a variable (that simulates another field I have, but for the example should be fine).&lt;/P&gt;&lt;P&gt;I'd like to add to this table, without using the above feature, another field, that sum the n_app of n:th-1 position before, in other words:&lt;/P&gt;&lt;P&gt;if n=1 then n-1=0 and for campaign 200809 i should see 8, for the next one 7, and so on.&lt;/P&gt;&lt;P&gt;if n=2 the n-1 =1 and for campaign 200809 i should see -, for the next one 8, and so forth.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I've been able to explain better the problem I'm facing.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Giulio&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Jun 2010 10:33:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/if-statement/m-p/203381#M60735</guid>
      <dc:creator />
      <dc:date>2010-06-27T10:33:00Z</dc:date>
    </item>
  </channel>
</rss>

