<?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 Statement Syntax Issue with Bar Graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920566#M983132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like you don't want &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Collaterally Held &lt;/STRONG&gt;anymore? If that's true, try this:&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;Load&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(A='Y',if(B='Y', '&lt;SPAN style="color: #ff0000;"&gt;Held&lt;/SPAN&gt;', 'Held'),if(IsNull(C),'Not Held &amp;amp; Never Held', 'Not Held &amp;amp; Has Been Held')) as [Held State]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Aug 2015 10:48:46 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2015-08-12T10:48:46Z</dc:date>
    <item>
      <title>If Statement Syntax Issue with Bar Graph</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920565#M983131</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;I currently have the below table and code in my script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;if(A='Y',if(B='Y', 'Collaterally Held', 'Held'),if(IsNull(C),'Not Held &amp;amp; Never Held', 'Not Held &amp;amp; Has Been Held')) as [Held State]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" height="275" style="border: 1px solid rgb(0, 0, 0); width: 369px; height: 252px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;A&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;B&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;C&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Y&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;12/08/2015&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;N&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This creates a nice bar chart as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" height="187" src="https://community.qlik.com/legacyfs/online/95730_Capture.PNG" style="height: 187.306px; width: 735px;" width="735" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it's &lt;STRONG&gt;Collaterally Held&lt;/STRONG&gt; when A is 'Y' and B is 'Y', and &lt;STRONG&gt;Held&lt;/STRONG&gt; when A is 'Y' and B is 'N'. However I want the following change:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Held&lt;/STRONG&gt; should be just when A is 'Y'. So everything would be the same, except Held would now have a value of '5'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't been able to get this to work so far. The 3rd and 4th columns work fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Tristan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 10:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920565#M983131</guid>
      <dc:creator />
      <dc:date>2015-08-12T10:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement Syntax Issue with Bar Graph</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920566#M983132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems like you don't want &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Collaterally Held &lt;/STRONG&gt;anymore? If that's true, try this:&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;Load&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(A='Y',if(B='Y', '&lt;SPAN style="color: #ff0000;"&gt;Held&lt;/SPAN&gt;', 'Held'),if(IsNull(C),'Not Held &amp;amp; Never Held', 'Not Held &amp;amp; Has Been Held')) as [Held State]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 10:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920566#M983132</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-12T10:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement Syntax Issue with Bar Graph</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920567#M983133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or this:&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;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;if(A='Y','Held', if(IsNull(C),'Not Held &amp;amp; Never Held', 'Not Held &amp;amp; Has Been Held')) as [Held State]&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 10:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920567#M983133</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-12T10:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement Syntax Issue with Bar Graph</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920568#M983134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would still like Collaterally Held if possible. So the same four columns as shown, but with &lt;STRONG&gt;Held&lt;/STRONG&gt; as just when A is 'Y'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 11:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920568#M983134</guid>
      <dc:creator />
      <dc:date>2015-08-12T11:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement Syntax Issue with Bar Graph</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920569#M983135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One row will only be able to take one value for a particular columne, either &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Collaterally Held &lt;/STRONG&gt;or &lt;STRONG&gt;Held. &lt;/STRONG&gt;May be add extra rows when A ='Y' and B = 'Y' as Held.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 11:04:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920569#M983135</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-12T11:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: If Statement Syntax Issue with Bar Graph</title>
      <link>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920570#M983136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;STRONG&gt;Table:&lt;/STRONG&gt;&lt;/SPAN&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;Load *,&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 style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(A='Y',&lt;SPAN style="color: #3d3d3d;"&gt; '&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;Held&lt;/SPAN&gt;', if(IsNull(C&lt;/SPAN&gt;),'Not Held &amp;amp; Never Held', 'Not Held &amp;amp; Has Been Held')) as [Held State]&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 style="font-style: inherit; font-family: inherit;"&gt;FROM source;&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 style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&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 style="font-style: inherit; font-family: inherit;"&gt;Concatenate (Table)&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;Load *,&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 style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; '&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Collaterally Held'&lt;/STRONG&gt; as [Held State]&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 style="font-style: inherit; font-family: inherit;"&gt;FROM source&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 style="font-style: inherit; font-family: inherit;"&gt;Where A = 'Y' and B = 'Y';&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Aug 2015 11:17:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Statement-Syntax-Issue-with-Bar-Graph/m-p/920570#M983136</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-12T11:17:53Z</dc:date>
    </item>
  </channel>
</rss>

