<?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: Help with IF statement? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846885#M297299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is -2 in $(v1p3DRC-2) and $(v1p3DRC-2)&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to subtract 2 from the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Rule Desc]='2x per node',$(vNodePercent2),&lt;/P&gt;&lt;P&gt;if([Rule Desc]='1 per 3 DRC',$(v1p3DRC)-2,&lt;/P&gt;&lt;P&gt;if([Rule Desc]='10-20% per node',$(v1p3DRC)-2, &lt;/P&gt;&lt;P&gt;if([Rule Desc]='Additional license per node', $(vAdd2))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2015 23:56:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-06-17T23:56:50Z</dc:date>
    <item>
      <title>Help with IF statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846879#M297293</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 know this is a basic question but I need a little help. Can you please tell me what is wrong with my IF statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Rule Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='2x per node',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vNodePercent2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Rule Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='1 per 3 DRC',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(v1p3DRC-2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Rule Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='10-20% per node',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(v1p3DRC-2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Rule Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Additional license per node',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vAdd2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 23:11:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846879#M297293</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-17T23:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846880#M297294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What kind of error are you receiving?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 23:19:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846880#M297294</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-06-17T23:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846881#M297295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Error: Error in Expression ')' Expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 23:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846881#M297295</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-17T23:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846882#M297296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you checked that all variables expand to valid syntax?&lt;/P&gt;&lt;P&gt;And there is no typo in variables name?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 23:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846882#M297296</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-17T23:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846883#M297297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weird, seems to be OK here, would you mind posting your screenshot?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89841_Capturar.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 23:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846883#M297297</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-06-17T23:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846884#M297298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not skilled at writing If statements. So I am sure its a closing bracket or something.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I was testing this in a text box. Because I want the value of the variable to show when a rules desc is showing.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Error.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89847_Error.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 23:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846884#M297298</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-17T23:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846885#M297299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is -2 in $(v1p3DRC-2) and $(v1p3DRC-2)&amp;nbsp;&amp;nbsp; ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to subtract 2 from the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then try below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Rule Desc]='2x per node',$(vNodePercent2),&lt;/P&gt;&lt;P&gt;if([Rule Desc]='1 per 3 DRC',$(v1p3DRC)-2,&lt;/P&gt;&lt;P&gt;if([Rule Desc]='10-20% per node',$(v1p3DRC)-2, &lt;/P&gt;&lt;P&gt;if([Rule Desc]='Additional license per node', $(vAdd2))&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 23:56:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846885#M297299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-17T23:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846886#M297300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please take a screenshot of your Properties / Edit Expression&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capturar.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/89842_Capturar.PNG" style="height: 288px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 00:06:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846886#M297300</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-06-18T00:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846887#M297301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the value for &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-size: 8pt; font-family: inherit; color: #808080;"&gt;$(v1p3DRC-2)..?&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 03:28:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846887#M297301</guid>
      <dc:creator>vardhancse</dc:creator>
      <dc:date>2015-06-18T03:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Help with IF statement?</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846888#M297302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the problem. There was no data for one of the variables. I was calcuation license count inside the variable. The part number I was working with didnt have a license count.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This is working fine.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Rule Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='2x per node',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(v2x)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Rule Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='10-20% per node',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vNodePercent2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Rule Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='1 per 3 DRC',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(v1p3DRC-2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Rule Desc]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;='Additional license per node',&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(vAdd2)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;))))&lt;BR /&gt;&lt;BR /&gt; How do I add another field value. I want each row to have another field selection. I also need it to be And. What is the correct syntax.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thank you for all the help. The comments above helped me troubleshoot the problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;:O)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jun 2015 17:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-IF-statement/m-p/846888#M297302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-06-18T17:02:04Z</dc:date>
    </item>
  </channel>
</rss>

