<?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: Need help with this set statement!! in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253026#M498226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I had done that. TransportCosts is how I have it in my above table, and the expression is &lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;CatCode={1},TransportCosts={'Normal Freight'}&amp;gt;}Amount)-Sum({$&amp;lt;CatCode={2},TransportCosts={'Normal Freight'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still does not work.. even if I remove TransportCosts I do not get the sum by CatCode as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Aug 2011 12:58:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-08-05T12:58:21Z</dc:date>
    <item>
      <title>Need help with this set statement!!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253024#M498220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pretty simple table structure as shown below and I am trying to create a bar chart which would show the Amount difference.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 87px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl25" height="17" width="87"&gt;Table1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17" style="border-top: medium none;"&gt;CatCode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17" style="border-top: medium none;"&gt;Region&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17" style="border-top: medium none;"&gt;CostType&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17" style="border-top: medium none;"&gt;ProductGroup&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17" style="border-top: medium none;"&gt;LocationCode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17" style="border-top: medium none;"&gt;Month&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl26" height="17" style="border-top: medium none;"&gt;Amount&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expr which I am using is &lt;STRONG&gt;:&lt;/STRONG&gt; Sum({$&amp;lt;CatCode={1},Transport Costs={'Normal Freight'}&amp;gt;}Amount)-Sum({$&amp;lt;CatCode={2},Transport Costs={'Normal Freight'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My cat code is nothing but 1 for Budget and 2 for Actual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I cannot get this working. Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 12:44:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253024#M498220</guid>
      <dc:creator />
      <dc:date>2011-08-05T12:44:58Z</dc:date>
    </item>
    <item>
      <title>Need help with this set statement!!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253025#M498224</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;Try adding [ ] around&lt;STRONG&gt; Transport Costs&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;CatCode={1},[Transport Costs]={'Normal Freight'}&amp;gt;}Amount)-Sum({$&amp;lt;CatCode={2},[Transport Costs]={'Normal Freight'}&amp;gt;}Amount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 12:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253025#M498224</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2011-08-05T12:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this set statement!!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253026#M498226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I had done that. TransportCosts is how I have it in my above table, and the expression is &lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;CatCode={1},TransportCosts={'Normal Freight'}&amp;gt;}Amount)-Sum({$&amp;lt;CatCode={2},TransportCosts={'Normal Freight'}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;still does not work.. even if I remove TransportCosts I do not get the sum by CatCode as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 12:58:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253026#M498226</guid>
      <dc:creator />
      <dc:date>2011-08-05T12:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this set statement!!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253027#M498227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First I am sorry if I am mistaken,&lt;/P&gt;&lt;P&gt;I can't see [Transport Costs] field in your table.&lt;/P&gt;&lt;P&gt;Second, if this field exists than I hope GandalfGray has correctly answered.&lt;/P&gt;&lt;P&gt;And also put CatCode={'1'}, I mean put quotes around the CatCodes values 1 &amp;amp; 2&lt;/P&gt;&lt;P&gt;Third, Please upload a test application with sample data so that we can try it out for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bikash Debnath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 17:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253027#M498227</guid>
      <dc:creator />
      <dc:date>2011-08-05T17:30:29Z</dc:date>
    </item>
    <item>
      <title>Need help with this set statement!!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253028#M498228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi arch25,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expression which you are using isnt the correct format for set analysis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CatCode={"1"},TransportCosts)={"Normal Freight"}&amp;gt;}Amount) -sum( {&amp;lt;CatCode={"2"},TransportCosts)={"Normal Freight"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if that doesnt't work( for some reason, though i can't see y it wudn't, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this too&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;$(CatCode)={"1"},$(TransportCosts)={"Normal Freight"}&amp;gt;} Amount) -sum( {&amp;lt;$(CatCode(={"2"},$(TransportCosts)={"Normal Freight"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgrds,&lt;/P&gt;&lt;P&gt;Abhinava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 07:12:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253028#M498228</guid>
      <dc:creator />
      <dc:date>2011-08-08T07:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this set statement!!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253029#M498230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; hei &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;attach is an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 08:09:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253029#M498230</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2011-08-08T08:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this set statement!!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253030#M498231</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 have tried the 1st stmt and it doesn't work... 2nd stmt is syntactically not correct.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 08:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253030#M498231</guid>
      <dc:creator />
      <dc:date>2011-08-08T08:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this set statement!!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253031#M498232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi arch25,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you were correct on the 2nd statement being syntactically wrong... but the 1st stmt is correct..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looking at liron example qvw, everything looks fine and working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would advise you to reevaluate your linking, the transportcosts field should somehow be linked to the table containing the catcode, amount.......etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgrds,&lt;/P&gt;&lt;P&gt;Abhinava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 09:18:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253031#M498232</guid>
      <dc:creator />
      <dc:date>2011-08-08T09:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with this set statement!!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253032#M498233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi arch25,&lt;/P&gt;&lt;P&gt;checking out ur example... the chart is not displayed because the sum(Amount) value for both catcode=1 and 2 are same...&lt;/P&gt;&lt;P&gt;that y it is blank... though it can be made to disply the axis nevertheless...&lt;/P&gt;&lt;P&gt;also u need to select a dimension , either product hrp or month or watever u want..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto presentation tab in the chart propeteies and uncheck the "suppress zero values" and "suppress missing values" check boxes, you'l see the graph axis then,, ofcourse there'l be no bars coz the values cancel out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgrds,&lt;/P&gt;&lt;P&gt;Abhinava&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2011 09:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253032#M498233</guid>
      <dc:creator />
      <dc:date>2011-08-08T09:28:11Z</dc:date>
    </item>
    <item>
      <title>Need help with this set statement!!</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253033#M498234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;value of catCode =1 and catcode=2 is same&lt;/P&gt;&lt;P&gt;i believe u need to use + sign in betweeen two sum values like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CatCode={"1"},TransportCosts={"Normal Freight"}&amp;gt;}Amount) +&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;CatCode={"1"},TransportCosts={"Normal Freight"}&amp;gt;}Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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>Mon, 08 Aug 2011 10:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-this-set-statement/m-p/253033#M498234</guid>
      <dc:creator>SunilChauhan</dc:creator>
      <dc:date>2011-08-08T10:19:24Z</dc:date>
    </item>
  </channel>
</rss>

