<?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: Variables and if statements in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variables-and-if-statements/m-p/1235192#M624584</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;while creating new variable make sure '=' was removed for the Variable value.&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;&lt;BR /&gt;&lt;/SPAN&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;= Sum(sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2016 05:58:09 GMT</pubDate>
    <dc:creator>vardhancse</dc:creator>
    <dc:date>2016-11-11T05:58:09Z</dc:date>
    <item>
      <title>Variables and if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-if-statements/m-p/1235189#M624578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Having difficulty with using variables in IF statements (being used as measures). Trying to use these expressions in a straight table. The variables themselves work fine in the tables, but trying to use them in conjunction with the IF statements are not working? Can't figure out why they won't work ... usually get back (zero) or a blank field. Any help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;vExample = Sum(sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ( parts_age &amp;lt;= 90, $(vExample) )&amp;nbsp; ----- Does not seem to work?&lt;/P&gt;&lt;P&gt;if ( parts_age = 90, $(vExample) )&amp;nbsp; ----- Does seem to work ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an issue with using relational operators in IF statements????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 01:26:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-if-statements/m-p/1235189#M624578</guid>
      <dc:creator>caseyjohnson</dc:creator>
      <dc:date>2016-11-11T01:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-if-statements/m-p/1235190#M624580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works i think.&lt;/P&gt;&lt;P&gt;u can try below simple&amp;nbsp; example &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;try: &lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: Arial; color: #737373;"&gt;if (&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;$(vStartYear)&lt;/STRONG&gt;&amp;lt; 2012&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;,'YES','No')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 04:33:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-if-statements/m-p/1235190#M624580</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-11-11T04:33:35Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-if-statements/m-p/1235191#M624582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First check whether your variables getting data or not then use it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 05:20:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-if-statements/m-p/1235191#M624582</guid>
      <dc:creator />
      <dc:date>2016-11-11T05:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-if-statements/m-p/1235192#M624584</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;while creating new variable make sure '=' was removed for the Variable value.&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;&lt;BR /&gt;&lt;/SPAN&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;= Sum(sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 05:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-if-statements/m-p/1235192#M624584</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2016-11-11T05:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variables and if statements</title>
      <link>https://community.qlik.com/t5/QlikView/Variables-and-if-statements/m-p/1235193#M624585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's nothing wrong with either statement. To get more useful help and not just guesswork, I suggest that you upload a small sample qvw to illustrate the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-1290"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 06:38:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variables-and-if-statements/m-p/1235193#M624585</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-11-11T06:38:44Z</dc:date>
    </item>
  </channel>
</rss>

