<?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: Simple if is killing me in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409631#M152331</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tor&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The attached works (I think).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Load script has slight mods.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;3 variables created, these allow me to identify the max value of YM2 for each of A1, A2, A3 (so you'd need to do the same for B1,B2,B3 and C1,C2,C3 to complete it.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The Latest A expression in your chart now uses the above variables and correctly shows only A2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;You should check the logic of the LatestA expression though, to make sure I have understood correctly.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2013 16:07:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-01-10T16:07:01Z</dc:date>
    <item>
      <title>Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409623#M152323</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;Im quite new to QlikView but experienced in Excel. I am trying to make a simple If statement but it is killing me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created different expressions that are displayed in a linechart but i am trying to make an if expresseion that will filter out some of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(B3&amp;gt;0,B3,B2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B3 is more then 0 so it should now only display a new line that is excatcly like B3. If B3 would be 0 or less it should make a new line that is exactly like B2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; It doesnt, it instead adds B3+B2 in my new line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the same time, if B3 is less then 0 then it only displays B2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does it do B3+B2??? when the condition is true in if(B3&amp;gt;0,B3,B2) when the condition is false it does as it should, only shows B2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I am also using QlikView 10)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 17:11:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409623#M152323</guid>
      <dc:creator />
      <dc:date>2013-01-09T17:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409624#M152324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you post a sample qvw?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 17:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409624#M152324</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2013-01-09T17:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409625#M152325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this the whole expression you're using, or do you have SUM() wrapped around it somehow?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OR, are you saying that each "line" will only ever have one value of B3 &amp;amp; B2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are multiple values and you want to have a sum of B3 or B2 for each row in the group, depending upon the higher value in each row, then you should use Sum(If(B3&amp;gt;0,B3,B2)).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 18:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409625#M152325</guid>
      <dc:creator />
      <dc:date>2013-01-09T18:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409626#M152326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To answer the question, it would be helpful to see the data model, and the chart dimensions.&lt;BR /&gt;You're not using aggregation functions.&amp;nbsp; Is there a possibility that there are multiple B3 field values per chart dimension?&amp;nbsp; I'd expect to see expresion like this:&lt;BR /&gt;sum(if(B3&amp;gt;0,B3,B2))&lt;/P&gt;&lt;P&gt;As Fernando Suzuki suggested, post an example.&amp;nbsp; I'm sure it will be easy to resolve.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Jan 2013 18:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409626#M152326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-01-09T18:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409627#M152327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi, thanks for the help but it didn’t work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I have made a test file now since I cant hand out the original data. See attatchment.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;What I want to do is to make an expression that chooses what lines to display. Each of the expressions/lines representst different versions of a budget. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;So only the latest of A1, A2 or A3 should be displayed. The original database is made up of many different products and this data is only test selection of a product.&amp;nbsp; Based on the product selected I only want to show the latest budget for each letter, A,B or C. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;If A3 is empty but A2 contains data, then I only want to display A2 and not A1 which will contain data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;In the final version I will make all the expressions/lines invisible and then use an expression that chooses the latest budget that contains data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: #000000;"&gt;In the file I use the Expression LatestA =&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;&amp;nbsp; If&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif';"&gt;(A3&amp;gt;0,A3,if(A2&amp;gt;0,A2,A1))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: #000000;"&gt;I think that this should only display A2 since A3 I zero. But instead it adds A2 and A1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: #000000;"&gt;Help is much appreciated!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: #000000;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Arial','sans-serif'; color: #000000;"&gt;Tor Lindström&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 14:19:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409627#M152327</guid>
      <dc:creator />
      <dc:date>2013-01-10T14:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409628#M152328</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;Can I just clarify then, when you say you want the latest budget, the latest as far as I can see from your data is:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;A1 = 201006 at a value of 585&lt;/P&gt;&lt;P&gt;A2 = 201009 at a value of 498+122&lt;/P&gt;&lt;P&gt;A3 has no values&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;B1 = 201011 at a value of 781+179&lt;/P&gt;&lt;P&gt;B2 = 201010 at a value of 361+128&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;etc, so is the above what you are expecting to see?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 14:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409628#M152328</guid>
      <dc:creator />
      <dc:date>2013-01-10T14:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409629#M152329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, is this what you want to see?&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="28961" class="jive-image" alt="Budgets.png" src="https://community.qlik.com/legacyfs/online/28961_Budgets.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 15:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409629#M152329</guid>
      <dc:creator />
      <dc:date>2013-01-10T15:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409630#M152330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply Nigel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order comes from the number, so A3 is newer then A2, which is newer then A1. So in the case of A. I only want to display A2 for all dates. Since there is no data in A3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that it adds A2 and A1 with the code i am running, see start post.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I say "latest" doesnt have anything to do with the dates such as "201006", it is the latest version of a planning stage. So when production planning is made, different budgets are changed througout the planning process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to see the A/B or C with the highest number and that also contains data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this clarifies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is much appreciated !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tor Lindström&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 15:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409630#M152330</guid>
      <dc:creator />
      <dc:date>2013-01-10T15:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409631#M152331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tor&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The attached works (I think).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Load script has slight mods.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;3 variables created, these allow me to identify the max value of YM2 for each of A1, A2, A3 (so you'd need to do the same for B1,B2,B3 and C1,C2,C3 to complete it.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The Latest A expression in your chart now uses the above variables and correctly shows only A2.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;You should check the logic of the LatestA expression though, to make sure I have understood correctly.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 16:07:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409631#M152331</guid>
      <dc:creator />
      <dc:date>2013-01-10T16:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409632#M152332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your help Nigel!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t really understood all the things that you have done but have tried and it is not working. I only get nulls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The file I sent is a test and the real version varies some. The data I use is from a much larger database that someone else has built up and I am just suppose to do some adjustments which seems to be much more difficult than I expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have problems with fixing the YM2 field in the script. And it says YM2 bad fieldname when I try to create the “BudgetXY” variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I originally thought would be a simple nested If-statement has turned into something much larger and more complex. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But even in the Example I cant get the C budget to work. It works for B though?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have again done the nested If function as I would like it to be, (wishful thinking?) the weird thing is that when it reaches the true condiction it then executes the “then” statement but then it also continues to move down to the next condition. In all other programs I have worked with once an If statement reaches a true condition I excecutes the “then” command and then ends the if.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//see attatchmet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I make the if statement stop running after it reaches a true condition. Instead it keeps on adding all true condition, in the file you can see, the new expressions I made in the chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I want to do really is to display the budget type with the higest number that contains data.&lt;/P&gt;&lt;P&gt;I really hope you have the time to help me out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, hope you have the tme to help me out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tor Lindström&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 15:10:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409632#M152332</guid>
      <dc:creator />
      <dc:date>2013-01-11T15:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409633#M152333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm starting to some of what your problem is, you have full accumulation switched on for these columns which is making life pretty difficult in understanding your data.&amp;nbsp; So, now that I've siwtched this off, I think we might be able to get somewhere with it, but I'm still not absolutely clear on your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are executing an IF statement per cell then this will run against each YM value, so in your source data you have something like this:&lt;/P&gt;&lt;P&gt;YM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A3&lt;/P&gt;&lt;P&gt;20081&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; 929&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;20082&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 847&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; -&lt;/P&gt;&lt;P&gt;20083&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; 472&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;20084&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 834&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 767&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;20085&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;&amp;nbsp; 108&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The last line is made up, because you don't have anything with data in A3, however, given the above simple dataset, is the following what you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LatestA&lt;/P&gt;&lt;P&gt;20081&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 929&lt;/P&gt;&lt;P&gt;20082&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 847&lt;/P&gt;&lt;P&gt;20083&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 472&lt;/P&gt;&lt;P&gt;20084&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 767&lt;/P&gt;&lt;P&gt;20085&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 108&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is it something else, maybe the above is correct in terms of individual lines but you want each line to be the cumulative total, or maybe I've got it completely wrong again?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Jan 2013 16:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409633#M152333</guid>
      <dc:creator />
      <dc:date>2013-01-11T16:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409634#M152334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nigel Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN the case you present Lateset A would be simply 108.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If A3 would have been empty it should only be the data in A2. in other words, Latest a would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A3&lt;/P&gt;&lt;P&gt;20081&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; 929&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;20082&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 847&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; -&lt;/P&gt;&lt;P&gt;20083&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; 472&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;20084&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 834&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 767&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;20085&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; -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;YM&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; Latest A &lt;/P&gt;&lt;P&gt;20081&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 929&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;20082&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; &lt;/P&gt;&lt;P&gt;20083&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 472&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;20084&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 767&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;20085&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; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the latset is allways the highest number in A1/2 or 3 but it also has to contain data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this should be a simple if but it allways adds the budgets that contains data for me when i really just want to select and copy one budget, the budgets that contain data and then out of those the one with the highest "name-number"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this clarifies, Thanks a lot for your time and interest and I would be very greatful if you could help me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;Tor Lindström&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 08:55:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409634#M152334</guid>
      <dc:creator />
      <dc:date>2013-01-14T08:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Simple if is killing me</title>
      <link>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409635#M152335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is the case then the solution that I sent on 10th Jan at 11:07 is the one you want to use as this does exactly what you are asking for. Obviously there are things that you are struggling to replicate in your real document but those are what we need to concentrate on, because overall the solution does work as it should (I think).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the key things you need to do in your table is to remove the full acumulation on expressions because this is not helping you, it clouds everything.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could go back to that solution and take the implementation step by step, we'll try to correct each little problem as it comes up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nigel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2013 09:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Simple-if-is-killing-me/m-p/409635#M152335</guid>
      <dc:creator />
      <dc:date>2013-01-14T09:10:46Z</dc:date>
    </item>
  </channel>
</rss>

