<?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 optimize set analysis expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/how-to-optimize-set-analysis-expression/m-p/1098489#M891937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the expression is giving null values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Aug 2016 07:33:49 GMT</pubDate>
    <dc:creator>shruthibk</dc:creator>
    <dc:date>2016-08-29T07:33:49Z</dc:date>
    <item>
      <title>how to optimize set analysis expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-optimize-set-analysis-expression/m-p/1098487#M891935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could anybody help me to optimize the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the expression is similar like below&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Num_flag={'1'},rating={'high'},Year={'$(vCurrentYear)'},&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[ COB Date],[Audit Date],[Month Name]&lt;/SPAN&gt;,issue=state1::issue&amp;gt;}DISTINCT(ID))&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;count({&amp;lt;DeNum_flag={'1'},rating={'high'},Year={'$(vCurrentYear)'},&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[ COB Date],[Audit Date],[Month Name],&lt;/SPAN&gt;issue=state1::issue&amp;gt;}DISTINCT(ID))&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;is there any way to optimize this code?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2) Dimensions are rating and Month Name&lt;/P&gt;&lt;P&gt;=count({$*state1&amp;lt;&lt;SPAN style="font-size: 13.3333px;"&gt;Num_flag&lt;/SPAN&gt;={'1'}, Year={'$(=num(vCurrentYear)-1)'},[ COB Date],[Audit Date],[Month Name], &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;issue=state1::issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;}DISTINCT ID)&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;count({$*state1&amp;lt;de&lt;SPAN style="font-size: 13.3333px;"&gt;Num_flag&lt;/SPAN&gt;={'1'}, Year={'$(=num(vCurrentYear)-1)'},[ COB Date],,[Audit Date],[Month Name], &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;issue=state1::issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&amp;gt;}DISTINCT ID)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;i would like to exclude the Month Name dimesion in this expression,where this expression should be calculated for only rating ,how can i exclude this dimension?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-optimize-set-analysis-expression/m-p/1098487#M891935</guid>
      <dc:creator>shruthibk</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to optimize set analysis expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-optimize-set-analysis-expression/m-p/1098488#M891936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;the expression is similar like below&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;1)&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;=count({&amp;lt;Num_flag={'1'},rating={'high'},Year={'$(vCurrentYear)'},&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[ COB Date],[Audit Date],[Month Name]&lt;/SPAN&gt;,issue=state1::issue&amp;gt;}DISTINCT(ID))&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count({&amp;lt;DeNum_flag={'1'},rating={'high'},Year={'$(vCurrentYear)'},&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;[ COB Date],[Audit Date],[Month Name],&lt;/SPAN&gt;issue=state1::issue&amp;gt;}DISTINCT(ID))&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;is there any way to optimize this code?&lt;/P&gt;



&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You can remove the parentheses around ID. Otherwise? No idea. For some reason I don't seem to be able to open your Qlikview .qvw document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;2) Dimensions are rating and Month Name&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=count({$*state1&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Num_flag&lt;/SPAN&gt;={'1'}, Year={'$(=num(vCurrentYear)-1)'},[ COB Date],[Audit Date],[Month Name],&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;issue=state1::issue&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;&amp;gt;}DISTINCT ID)&lt;/P&gt;
&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count({$*state1&amp;lt;de&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Num_flag&lt;/SPAN&gt;={'1'}, Year={'$(=num(vCurrentYear)-1)'},[ COB Date],,[Audit Date],[Month Name],&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;issue=state1::issue&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}DISTINCT ID)&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;i would like to exclude the Month Name dimesion in this expression,where this expression should be calculated for only rating ,how can i exclude this dimension?&lt;/P&gt;


&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Exclude? I assume you don't mean simply removing it from the expression. Your using Month Name as chart dimension. That means the expression is calculated for the Month Name values. If you want to see the same value for every rating value then add &lt;STRONG&gt;Total &amp;lt;rating&amp;gt; &lt;/STRONG&gt;to the expression.&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;=count(&lt;STRONG&gt;total &amp;lt;rating&amp;gt;&lt;/STRONG&gt; {$*state1&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Num_flag&lt;/SPAN&gt;={'1'}, Year={'$(=num(vCurrentYear)-1)'},[ COB Date],[Audit Date],&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;issue=state1::issue&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;&amp;gt;}DISTINCT ID)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;/&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;count(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;total &amp;lt;rating&amp;gt; &lt;/STRONG&gt;&lt;/SPAN&gt;{$*state1&amp;lt;de&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Num_flag&lt;/SPAN&gt;={'1'}, Year={'$(=num(vCurrentYear)-1)'},[ COB Date],[Audit Date],&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;issue=state1::issue&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;gt;}DISTINCT ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 15:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-optimize-set-analysis-expression/m-p/1098488#M891936</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-08-26T15:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to optimize set analysis expression?</title>
      <link>https://community.qlik.com/t5/QlikView/how-to-optimize-set-analysis-expression/m-p/1098489#M891937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the expression is giving null values&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 07:33:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/how-to-optimize-set-analysis-expression/m-p/1098489#M891937</guid>
      <dc:creator>shruthibk</dc:creator>
      <dc:date>2016-08-29T07:33:49Z</dc:date>
    </item>
  </channel>
</rss>

