<?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 that doesn't work in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961514#M13784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jhonatan,&lt;/P&gt;&lt;P&gt;Are you using this in the script or as an expression of a measure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Dec 2015 20:36:56 GMT</pubDate>
    <dc:creator>reddy-s</dc:creator>
    <dc:date>2015-12-24T20:36:56Z</dc:date>
    <item>
      <title>if condition that doesn't work</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961506#M13776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey everyone i am trying to set an if condition but for some reason it dosen't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sum({$&amp;lt;YEAR={'$(=max(YEAR-1))'}&amp;gt;}RIV_QUANT)&amp;gt;0 and &lt;/P&gt;&lt;P&gt;sum({$&amp;lt;YEAR={'$(=max(YEAR-1))'}&amp;gt;}NIS_TOTPRICE)&amp;gt;0 and&lt;/P&gt;&lt;P&gt;(sum ({$&amp;lt;Year={'YEAR'}&amp;gt;}RIV_QUANT))&amp;lt;1 and&lt;/P&gt;&lt;P&gt;(sum ({$&amp;lt;Year={'YEAR'}&amp;gt;}NIS_TOTPRICE))&amp;lt;1,(sum ({$&amp;lt;Year={'YEAR'}&amp;gt;}NIS_TOTPRICE))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;RIV_QUANT=quantatiy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;NIS_TOTPRICE=sales&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2015 09:20:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961506#M13776</guid>
      <dc:creator />
      <dc:date>2015-12-20T09:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: if condition that doesn't work</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961507#M13777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here is a link to the original file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0B2IfmXahIOnob3FSY00yYUU0NXM/view?usp=sharing" title="https://drive.google.com/file/d/0B2IfmXahIOnob3FSY00yYUU0NXM/view?usp=sharing"&gt;clinton key table6.qvf - Google Drive&amp;nbsp; &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2015 09:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961507#M13777</guid>
      <dc:creator />
      <dc:date>2015-12-20T09:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: if condition that doesn't work</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961508#M13778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know if this is just a typo when you were posting it here, or if this is something you missed in your original expression, but you are missing a parenthesis and two extra parenthesis in your expression: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=If(Sum({$&amp;lt;YEAR={'$(=Max(YEAR-1))'}&amp;gt;} RIV_QUANT) &amp;gt; 0 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({$&amp;lt;YEAR={'$(=Max(YEAR-1))'}&amp;gt;} NIS_TOTPRICE) &amp;gt; 0 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum ({$&amp;lt;Year={'YEAR'}&amp;gt;} RIV_QUANT)) &amp;lt; 1 and&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum ({$&amp;lt;Year={'YEAR'}&amp;gt;} NIS_TOTPRICE)) &amp;lt; 1, &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum ({$&amp;lt;Year={'YEAR'}&amp;gt;} NIS_TOTPRICE))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2015 13:35:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961508#M13778</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-12-20T13:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: if condition that doesn't work</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961509#M13779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey sunny i do understand what your saying&amp;nbsp; but for some reason it's not working,&lt;/P&gt;&lt;P&gt;can't you try using my link to find out the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2015 14:04:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961509#M13779</guid>
      <dc:creator />
      <dc:date>2015-12-20T14:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: if condition that doesn't work</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961510#M13780</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;Not sure If I have understood what you want to do maybe you can try this expression :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (sum({$&amp;lt;YEAR={'$(=max(YEAR)-1)'}&amp;gt;}RIV_QUANT)&amp;gt;0 and sum({$&amp;lt;YEAR={'$(=max(YEAR)-1)'}&amp;gt;}NIS_TOTPRICE)&amp;gt;0 and sum ({$&amp;lt;YEAR={'$(=max(YEAR))'}&amp;gt;}RIV_QUANT)&amp;lt;0 and sum ({$&amp;lt;YEAR={'$(=max(YEAR))'}&amp;gt;}NIS_TOTPRICE)&amp;lt;0,sum ({$&amp;lt;YEAR={'$(=max(YEAR))'}&amp;gt;}NIS_TOTPRICE),0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works if you select a YEAR and if not it is taken the MAX (YEAR) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gilles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Dec 2015 17:06:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961510#M13780</guid>
      <dc:creator />
      <dc:date>2015-12-20T17:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: if condition that doesn't work</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961511#M13781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what i am trying to show its which customers had sales on 2014 ( for example) but stopped buying in 2015 ( for example) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 09:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961511#M13781</guid>
      <dc:creator />
      <dc:date>2015-12-21T09:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: if condition that doesn't work</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961512#M13782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for some reason the reason you gave me didn't work &lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0B2IfmXahIOnob3FSY00yYUU0NXM/view?usp=sharing" title="https://drive.google.com/file/d/0B2IfmXahIOnob3FSY00yYUU0NXM/view?usp=sharing"&gt;clinton key table6.qvf - Google Drive&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 09:03:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961512#M13782</guid>
      <dc:creator />
      <dc:date>2015-12-21T09:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: if condition that doesn't work</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961513#M13783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;If you want those that did not buy anything you should put &amp;lt;=0 instead of &amp;lt;0 for the current year. Also It works for me as I put Customer as dimension. if you want to use it in a graph without Customer as Dimension you need to do an aggr expression.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Can you tell me more how you want to use it ? Maybe in you qvf add a new sheet (in english please) with what you are trying to do ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-US" style="font-size: 10pt; font-family: Arial, sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: Arial, sans-serif;"&gt;Gilles&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Dec 2015 09:17:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961513#M13783</guid>
      <dc:creator />
      <dc:date>2015-12-21T09:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: if condition that doesn't work</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961514#M13784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jhonatan,&lt;/P&gt;&lt;P&gt;Are you using this in the script or as an expression of a measure?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Dec 2015 20:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961514#M13784</guid>
      <dc:creator>reddy-s</dc:creator>
      <dc:date>2015-12-24T20:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: if condition that doesn't work</title>
      <link>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961515#M13785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone ,&lt;/P&gt;&lt;P&gt;the script line that finaliy work was:&lt;/P&gt;&lt;P&gt;if (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({$&amp;lt;YEAR={'$(=max(YEAR)-1)'}&amp;gt;}RIV_QUANT)&amp;gt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and sum({$&amp;lt;YEAR={'$(=max(YEAR)-1)'}&amp;gt;}NIS_TOTPRICE)&amp;gt;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and sum ({$&amp;lt;YEAR={'$(=max(YEAR))'}&amp;gt;}RIV_QUANT)&amp;lt;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and sum ({$&amp;lt;YEAR={'$(=max(YEAR))'}&amp;gt;}NIS_TOTPRICE)&amp;lt;1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum ({$&amp;lt;YEAR={'$(=max(YEAR))'}&amp;gt;}NIS_TOTPRICE),sum ({$&amp;lt;YEAR={'$(YEAR)'}&amp;gt;}NIS_TOTPRICE)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;thank you all for helping!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Dec 2015 10:44:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/if-condition-that-doesn-t-work/m-p/961515#M13785</guid>
      <dc:creator />
      <dc:date>2015-12-31T10:44:28Z</dc:date>
    </item>
  </channel>
</rss>

