<?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 Set analysis unknown error in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996687#M339050</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 am working on a expression&amp;nbsp; to calculate a value for a belwo mentioned&amp;nbsp; condition &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if count(activityid) &amp;gt; sum(activitytarget)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; then it should be doing( (a/b)-1) to calculate the percentage .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are showing these value at YTD , MTD and monthly level .&lt;/P&gt;&lt;P&gt;I have created two boxes when YTD is selected the value comes right .&lt;/P&gt;&lt;P&gt;When MTD is selected is fine , but when I select an individual month, the expression doesn't calculate the value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression used Is mentioned below&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;)=0,&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={'$(currMonthName)'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;ActivityId&lt;/SPAN&gt;))&amp;gt;(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={'$(currMonthName)'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Activity_Target&lt;/SPAN&gt;)),&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;num&lt;/SPAN&gt;((((&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={'$(currMonthName)'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;ActivityId&lt;/SPAN&gt;))/(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={'$(currMonthName)'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Activity_Target&lt;/SPAN&gt;)))-1),'#,##0.0%'),&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;num&lt;/SPAN&gt;((&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ActivityID&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Activity_Target&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;)-1),'#,##0.0%')))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; the expression doesn't show any error . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am attaching a sample script with expression . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If I make a selection for year 2014 and month July it should return some 12.## % . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;thanks for the help &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Medha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2015 06:31:50 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-09-22T06:31:50Z</dc:date>
    <item>
      <title>Set analysis unknown error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996687#M339050</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 am working on a expression&amp;nbsp; to calculate a value for a belwo mentioned&amp;nbsp; condition &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if count(activityid) &amp;gt; sum(activitytarget)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; then it should be doing( (a/b)-1) to calculate the percentage .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are showing these value at YTD , MTD and monthly level .&lt;/P&gt;&lt;P&gt;I have created two boxes when YTD is selected the value comes right .&lt;/P&gt;&lt;P&gt;When MTD is selected is fine , but when I select an individual month, the expression doesn't calculate the value .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression used Is mentioned below&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;=&lt;/STRONG&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;)=0,&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt;((&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={'$(currMonthName)'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;ActivityId&lt;/SPAN&gt;))&amp;gt;(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={'$(currMonthName)'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Activity_Target&lt;/SPAN&gt;)),&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;num&lt;/SPAN&gt;((((&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={'$(currMonthName)'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;ActivityId&lt;/SPAN&gt;))/(&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({&amp;lt;&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={'$(currMonthName)'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;Activity_Target&lt;/SPAN&gt;)))-1),'#,##0.0%'),&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;num&lt;/SPAN&gt;((&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ActivityID&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Activity_Target&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;STRONG&gt;)-1),'#,##0.0%')))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; the expression doesn't show any error . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I am attaching a sample script with expression . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;If I make a selection for year 2014 and month July it should return some 12.## % . &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;thanks for the help &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best&lt;/P&gt;&lt;P&gt;Medha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 06:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996687#M339050</guid>
      <dc:creator />
      <dc:date>2015-09-22T06:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis unknown error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996688#M339051</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;Few points need to check&lt;/P&gt;&lt;P&gt;1: Check your brackets for last condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it (count(ActivityID)/sum(Activity_Target)-1)&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;(count(ActivityID)/sum(Activity_Target))-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2: use double quote instead of single quote&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3: Try by writing = when you are executing variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like $(=currMonthName)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 06:37:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996688#M339051</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2015-09-22T06:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis unknown error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996689#M339052</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;You have used &lt;STRONG style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;if&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Month&lt;/SPAN&gt;)=0,...then how will it calculated at expression level,here only conditions fails.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If&lt;STRONG style="font-size: 16px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;Month&lt;/SPAN&gt;)&amp;gt;0 satisfies with your requirement &lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 06:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996689#M339052</guid>
      <dc:creator />
      <dc:date>2015-09-22T06:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis unknown error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996690#M339053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi khushboo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for prompt help however my condition is&lt;/P&gt;&lt;P&gt;If &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;&lt;SPAN style="color: #0000ff; font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;GetSelectedCount&lt;/SPAN&gt;(&lt;SPAN style="color: #800000; font-family: inherit; font-style: inherit; font-weight: inherit;"&gt;Month&lt;/SPAN&gt;)=0 , then the expression calculate the value till currentmonth , &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;&amp;nbsp; therwise it need to calculate the value for the month being selected&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 16px;"&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 06:51:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996690#M339053</guid>
      <dc:creator />
      <dc:date>2015-09-22T06:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis unknown error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996691#M339054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(Month)&amp;gt;0,&lt;/P&gt;&lt;P&gt;if((count({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}ActivityId))&amp;gt;(sum({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}Activity_Target)),&lt;/P&gt;&lt;P&gt;num((((count({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}ActivityId))/(sum({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}Activity_Target)))-1),'#,##0.0%'),&lt;/P&gt;&lt;P&gt;num(((count(ActivityId))/(sum(Activity_Target)))-1,'#,##0.0%')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It returns -26.1%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 06:58:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996691#M339054</guid>
      <dc:creator />
      <dc:date>2015-09-22T06:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis unknown error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996692#M339055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok if that is the requirement use this expression,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(Month)=0,&lt;/P&gt;&lt;P&gt;if((count({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}ActivityId))&amp;gt;(sum({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}Activity_Target)),&lt;/P&gt;&lt;P&gt;num((((count({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}ActivityId))/(sum({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}Activity_Target)))-1),'#,##0.0%')),&lt;/P&gt;&lt;P&gt;num(((count(ActivityId))/(sum(Activity_Target)))-1,'#,##0.0%'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Khushboo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996692#M339055</guid>
      <dc:creator />
      <dc:date>2015-09-22T07:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis unknown error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996693#M339056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However when we select MTD now the expression doesn't work. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:25:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996693#M339056</guid>
      <dc:creator />
      <dc:date>2015-09-22T07:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis unknown error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996694#M339057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TT DOES NOT WORK BECAUSE THE CONDITION DOESNT SATISFY&amp;nbsp; AND THERE IS NOTHING WRITTEN IN ELSE THERE,&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;=if(GetSelectedCount(Month)=0,&lt;/P&gt;&lt;P&gt;if((count({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}ActivityId))&amp;gt;(sum({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}Activity_Target)),&lt;/P&gt;&lt;P&gt;num((((count({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}ActivityId))/(sum({&amp;lt;Month={'$(=currMonthName)'}&amp;gt;}Activity_Target)))-1),'#,##0.0%'),&lt;/P&gt;&lt;P&gt;num(((count(ActivityId))/(sum(Activity_Target)))-1,'#,##0.0%')),&lt;/P&gt;&lt;P&gt;num(((count(ActivityId))/(sum(Activity_Target)))-1,'#,##0.0%'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANKS&lt;/P&gt;&lt;P&gt;KHUSHBOO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 07:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996694#M339057</guid>
      <dc:creator />
      <dc:date>2015-09-22T07:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis unknown error</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996695#M339058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks A lot Khushboo ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ur help is much appreciated .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just tweaked the expression and got the desired answer .&lt;/P&gt;&lt;P&gt;For your ref this worked perfectly .&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&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: #0000ff; font-size: 8pt;"&gt;GetSelectedCount&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)=0,&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: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(currMonthName)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ActivityId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&amp;gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(currMonthName)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Activity_Target&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)),&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(currMonthName)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ActivityId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))/(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(currMonthName)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Activity_Target&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))-1),'#,##0.0%'),&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(currMonthName)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ActivityId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))/(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'$(currMonthName)'}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Activity_Target&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))-1),'#,##0.0%'))&lt;BR /&gt; ,&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(((&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;ActivityId&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))/(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Activity_Target&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)))-1,'#,##0.0%')) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 09:05:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-unknown-error/m-p/996695#M339058</guid>
      <dc:creator />
      <dc:date>2015-09-22T09:05:08Z</dc:date>
    </item>
  </channel>
</rss>

