<?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: IF condition takes both values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011587#M343151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that means it has two values and satisfies the both condition may be nulls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Sep 2015 09:50:17 GMT</pubDate>
    <dc:creator>sujeetsingh</dc:creator>
    <dc:date>2015-09-10T09:50:17Z</dc:date>
    <item>
      <title>IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011586#M343150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a big problem regarding how a field is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application is about spend analysis, and there are suppliers which has invoices. And my application must export a file in which I should have a STATUS of each supplier. For example if a supplier has spends over 12 past months it is ACTIVE, else is FORMER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The qlikview condition is :&lt;/P&gt;&lt;P&gt;if(rolling_spend_for_status&amp;lt;&amp;gt;0,'ACTIVE','FORMER') as SRM_STATUS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where rolling status is :&lt;/P&gt;&lt;P&gt;if(TimeKey&amp;gt;=((year(today())-1)*100+month(today())),sum(InvoiceLineAmountEUR)) as rolling_spend_for_status&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and TimeKey is like '201501' (year and month).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A part of the result is fine. But there are some values (a lot) which has status ACTIVE and FORMER (both) and I don't know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="98509" alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/98509_Capture.JPG" style="height: 318px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;See the picture. The invoice amount is 0 then SRM_STATUS should be 'FORMER" only.&lt;/P&gt;&lt;P&gt;*The last column is the old status. Is not taking in consideration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="98516" alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/98516_Capture.JPG" style="height: 316px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Another example : The PID019707 should be ACTIVE only because has spends over 12 past months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea why is this happening ? Why I have both Active and Former ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**The rolling spend for status is in the chart as 'InvoiceAmount'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***I cannot give you any sample files because there are too big.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 09:44:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011586#M343150</guid>
      <dc:creator />
      <dc:date>2015-09-10T09:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011587#M343151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that means it has two values and satisfies the both condition may be nulls.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 09:50:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011587#M343151</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2015-09-10T09:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011588#M343152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the attached image, you did not add &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;rolling_spend_for_status&lt;/STRONG&gt; can you reattach the image by adding &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;rolling_spend_for_status&lt;/STRONG&gt; into your table to see what values it is taking?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if possible, please attach your complete script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 09:50:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011588#M343152</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-09-10T09:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011589#M343153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The rolling spend status is Invoice Amount from the image. I forgot to mention.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 09:54:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011589#M343153</guid>
      <dc:creator />
      <dc:date>2015-09-10T09:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011590#M343154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt; attach some sample document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 09:59:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011590#M343154</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-10T09:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011591#M343155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this pseudo-code that you are using in your description? Because some things don't add up.&lt;/P&gt;&lt;P&gt;Anyway, add an ELSE clause to your rolling_spend_for_status calculation, like in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(TimeKey&amp;gt;=((year(today())-1)*100+month(today())),sum(InvoiceLineAmountEUR)&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;, 0&lt;/STRONG&gt;&lt;/SPAN&gt;) as rolling_spend_for_status&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:01:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011591#M343155</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-10T10:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011592#M343156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the if condition to have a else part.&lt;/P&gt;&lt;P&gt;if(TimeKey&amp;gt;=((year(today())-1)*100+month(today())),sum(InvoiceLineAmountEUR),&lt;STRONG&gt;0&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;Sasi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011592#M343156</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-09-10T10:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011593#M343157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've added the script. The data is taken from another qlikview application with binary load. So this is what I have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011593#M343157</guid>
      <dc:creator />
      <dc:date>2015-09-10T10:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011594#M343158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The TimeKey test in your script either produces NULL or an amount (that could be 0). Then you go on and test for difference from 0. NULL will do weird things in such a test because you cannot predict comparisons of numerical values with non-numerical (non-existent) values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add an ELSE clause as suggested below.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011594#M343158</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-10T10:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011595#M343159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I changed it. Is the same thing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:39:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011595#M343159</guid>
      <dc:creator />
      <dc:date>2015-09-10T10:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011596#M343160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I changed it. Is the same thing.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:39:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011596#M343160</guid>
      <dc:creator />
      <dc:date>2015-09-10T10:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011597#M343161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've added an else clause, and is the same thing. What you mean by 'test for difference from 0' ? How should I do that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:42:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011597#M343161</guid>
      <dc:creator />
      <dc:date>2015-09-10T10:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011598#M343162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, another track. Your resident table probably grows unexpectedly. The LEFT JOINs may be the culprits here. Let's investigate...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your script, after the initial LOAD of REGULAR_SRM_INTERFACE_TMP1 and after every subsequent LEFT JOIN &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;add the following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;LET vNumRows = NoOfRows('&lt;SPAN style="font-size: 13.3333px;"&gt;REGULAR_SRM_INTERFACE_TMP1&lt;/SPAN&gt;');&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;TRACE &amp;gt;&amp;gt;&amp;gt; Step 1: Number of Rows = $(vNumRows) &amp;lt;&amp;lt;&amp;lt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reload and watch the progress window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 10:48:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011598#M343162</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-10T10:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011599#M343163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;CRATE_TMP &amp;lt;&amp;lt; SUPPLIER_GROUPS 213.912 lines fetched&lt;/P&gt;
&lt;P&gt;SUPPLIERS 356.395 lines fetched&lt;/P&gt;
&lt;P&gt;INVOICES 85.717 lines fetched&lt;/P&gt;
&lt;P&gt;CRATE &amp;lt;&amp;lt; CRATE_TMP 42.249 lines fetched&lt;/P&gt;
&lt;P&gt;MAP_CRATE &amp;lt;&amp;lt; CRATE 42.249 lines fetched&lt;/P&gt;
&lt;P&gt;MAP_SPEND &amp;lt;&amp;lt; CRATE 42.249 lines fetched&lt;/P&gt;
&lt;P&gt;REGULAR_SRM_INTERFACE_TMP1 &amp;lt;&amp;lt; SUPPLIER_GROUPS 213.912 lines fetched&lt;/P&gt;
&lt;P&gt;SUPPLIERS 356.395 lines fetched&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Step 1: Number of Rows = 399519 &amp;lt;&amp;lt;&amp;lt; &lt;/P&gt;
&lt;P&gt;INVOICES 1.291.607 lines fetched&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Step 1: Number of Rows = 1534303 &amp;lt;&amp;lt;&amp;lt; &lt;/P&gt;
&lt;P&gt;BUs 10.735 lines fetched&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; Step 1: Number of Rows = 1534303 &amp;lt;&amp;lt;&amp;lt;&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 11:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011599#M343163</guid>
      <dc:creator />
      <dc:date>2015-09-10T11:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011600#M343164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Aside from the ones listed, there are various other joins in your script that add columns to your tables, do GROUP BY reductions and rearrange the data in your basic set. Are you including all fields that identify separate internal table records for the same SupplierKey/TimeKey-combination in your Pivot table? &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Or, to put it another way, if you create a Table box with fields SRM_PID, TimeKey and SRM_STATUS and select one of those TimeKey &amp;amp; &lt;SPAN style="font-size: 13.3333px;"&gt; SRM_PID combinations that provide faulty information in your Pivot table, how many SRM_STATUS values do you get? Which additional field(s) do you have to add to this table box to have another value difference?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 12:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011600#M343164</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-10T12:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011601#M343165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To put it more clearly: there is another field that you do not include in your Pivot table and that has different values for those ACTIVE/FORMER lines whose other field values are all the same. Try to figure out which field is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 12:42:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011601#M343165</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-10T12:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011602#M343166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I've attached a sample document. I was able to store the final table into a qvd. The issue is that TimeKey is null for a lot of SRM_PIDs and some SRM_PIDs has TimeKey but one empty. And if I calculate the Status it will give me ACTIVE for TimeKey and FORMER for empty TimeKey. How can I handle these null values specially for those SRM_PIDs which has TimeKey and one null TimeKey ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 14:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011602#M343166</guid>
      <dc:creator />
      <dc:date>2015-09-10T14:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011603#M343167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use the best practice way of aggregations:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(if(TimeKey&amp;gt;=((year(today())-1)*100+month(today())),InvoiceLineAmountEUR))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result should be a numeric result 0, where after you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(rolling_spend_for_status&amp;lt;&amp;gt;0,'ACTIVE','FORMER') as SRM_STATUS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2015 15:03:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011603#M343167</guid>
      <dc:creator>richard</dc:creator>
      <dc:date>2015-09-10T15:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011604#M343168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I guess you first have a choice to make: will you live with the Null-Timekey values or should you try to figure out why they are Null in some cases and correct that? I would go for the second option, &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 08:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011604#M343168</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2015-09-11T08:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: IF condition takes both values</title>
      <link>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011605#M343169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I found out why I have null values. It is because there are some SRM_PID which is loaded from another application where does not exist TimeKey correspondents to it. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Sep 2015 08:38:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/IF-condition-takes-both-values/m-p/1011605#M343169</guid>
      <dc:creator />
      <dc:date>2015-09-11T08:38:45Z</dc:date>
    </item>
  </channel>
</rss>

