<?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: How to use if stmt within sum function in set analysis? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616497#M478117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!!!&lt;/P&gt;&lt;P&gt;Thanks a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Mar 2014 03:23:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-03-25T03:23:31Z</dc:date>
    <item>
      <title>How to use if stmt within sum function in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616495#M478115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need the foll:&lt;/P&gt;&lt;TABLE border="1" cellpadding="0" cellspacing="0" style="border: none;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Fyear&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;GROUP_DESC&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border: solid windowtext 1.0pt; border-left: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Amount&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;FY13&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Net sales&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;2343&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Profit&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;12%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;FY12&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Net sales&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;3452&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border: solid windowtext 1.0pt; border-top: none; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;Profit&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-top: none; border-left: none; border-bottom: solid windowtext 1.0pt; border-right: solid windowtext 1.0pt; padding: 0 5.4pt 0 5.4pt;" valign="top" width="205"&gt;&lt;P style="margin-bottom: .0001pt;"&gt;23%&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;I am using Set analysis something like foll which is having four diff expressions and giving me four columns in the table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;GROUP_DESC={'Net sales'},FYear={$(vPrevFY)}&amp;gt;}Amount)/1000000&lt;/P&gt;&lt;P&gt;sum({&amp;lt;GROUP_DESC={'Net sales'},FYear={$(vCurrFY)}&amp;gt;}Amount)/1000000&lt;/P&gt;&lt;P&gt;sum({&amp;lt;GROUP_DESC={'Profit'},FYear={$(vPrevFY)}&amp;gt;}Amount)/1000000&lt;/P&gt;&lt;P&gt;sum({&amp;lt;GROUP_DESC={'Profit'},FYear={$(vCurrFY)}&amp;gt;}Amount)/1000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i get all these four in one condition so that i get only one column using if stmt?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 03:00:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616495#M478115</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T03:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if stmt within sum function in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616496#M478116</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 this&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;GROUP_DESC={'Net sales', &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'Profit'&lt;/SPAN&gt;},FYear={$(vPrevFY), &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;$(vCurrFY)&lt;/SPAN&gt;}&amp;gt;}Amount)/1000000&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;Regards,&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;jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 03:15:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616496#M478116</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-25T03:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if stmt within sum function in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616497#M478117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!!!&lt;/P&gt;&lt;P&gt;Thanks a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 03:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616497#M478117</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T03:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if stmt within sum function in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616498#M478118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only issue is that my Profit is not showing as %. How do I do that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 03:27:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616498#M478118</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T03:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if stmt within sum function in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616499#M478119</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 you attach the sample file, so that it would be easier to understand.&amp;nbsp; If you have a dimension &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;GROUP_DESC&lt;/SPAN&gt; then try like this&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;=If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;GROUP_DESC&lt;/SPAN&gt;&amp;nbsp; = '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Profit&lt;/SPAN&gt;', Num(sum({&amp;lt;GROUP_DESC={'Net sales', &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Profit'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;},FYear={$(vPrevFY), &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(vCurrFY)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;}&amp;gt;}Amount)/1000000, '##0%'),&amp;nbsp; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; Num(sum({&amp;lt;GROUP_DESC={'Net sales', &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;'Profit'&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;},FYear={$(vPrevFY), &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;$(vCurrFY)&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;}&amp;gt;}Amount)/1000000, '#,##0'))&lt;/SPAN&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;&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;Hope this helps you.&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;Regards,&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;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 03:33:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616499#M478119</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-03-25T03:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to use if stmt within sum function in set analysis?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616500#M478120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does work for the Current year.. but not for previous year.. &lt;/P&gt;&lt;P&gt;But really helpful in understanding &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Mar 2014 03:51:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-if-stmt-within-sum-function-in-set-analysis/m-p/616500#M478120</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-25T03:51:59Z</dc:date>
    </item>
  </channel>
</rss>

