<?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: set analysis(using an if statement) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/set-analysis-using-an-if-statement/m-p/710377#M255909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the $ expansion:&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;"&gt;(Sum( {$&amp;lt;ScriptMonth={$(=concat('"' &amp;amp; CurrYearMonth &amp;amp; '"', ',' ))}&amp;gt;} if($(vMeasures) = 'SepPack','(Qty * SepPack)',$(vMeasures))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;let me know&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2014 10:21:26 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-06-19T10:21:26Z</dc:date>
    <item>
      <title>set analysis(using an if statement)</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-using-an-if-statement/m-p/710376#M255908</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;Can some1 help me on this, my if statement seems to not be working&lt;/P&gt;&lt;P&gt;(Sum( {$&amp;lt;ScriptMonth={$(=concat('"' &amp;amp; CurrYearMonth &amp;amp; '"', ',' ))}&amp;gt;} if(vMeasures = 'SepPack','(Qty * SepPack)',$(vMeasures))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the measure is = 'SepPack' then the calculation is not correct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 10:16:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-using-an-if-statement/m-p/710376#M255908</guid>
      <dc:creator />
      <dc:date>2014-06-19T10:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis(using an if statement)</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-using-an-if-statement/m-p/710377#M255909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with the $ expansion:&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;"&gt;(Sum( {$&amp;lt;ScriptMonth={$(=concat('"' &amp;amp; CurrYearMonth &amp;amp; '"', ',' ))}&amp;gt;} if($(vMeasures) = 'SepPack','(Qty * SepPack)',$(vMeasures))))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;let me know&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 10:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-using-an-if-statement/m-p/710377#M255909</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-06-19T10:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis(using an if statement)</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-using-an-if-statement/m-p/710378#M255910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried with that but it still doesnt work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 11:08:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-using-an-if-statement/m-p/710378#M255910</guid>
      <dc:creator />
      <dc:date>2014-06-19T11:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis(using an if statement)</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-using-an-if-statement/m-p/710379#M255911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove the single quotes around your THEN branch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(&lt;/P&gt;&lt;P&gt;{$&amp;lt;ScriptMonth={$(=concat('"' &amp;amp; CurrYearMonth &amp;amp; '"', ',' ))}&amp;gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(vMeasures = 'SepPack', &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Qty * SepPack)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // removed single quotes here, you want the fields, not a literal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,$(vMeasures)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 11:14:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-using-an-if-statement/m-p/710379#M255911</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2014-06-19T11:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: set analysis(using an if statement)</title>
      <link>https://community.qlik.com/t5/QlikView/set-analysis-using-an-if-statement/m-p/710380#M255912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; removed single quotes&amp;nbsp; and its working, thanks &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2014 11:22:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/set-analysis-using-an-if-statement/m-p/710380#M255912</guid>
      <dc:creator />
      <dc:date>2014-06-19T11:22:18Z</dc:date>
    </item>
  </channel>
</rss>

