<?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 Set Analysis syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870845#M304432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count({$&amp;lt;[01-Opportunity WL]={"x"},[02-Engagement WL]={"x"},[06-OPTT]={'x'},RGroup-={'10'}&amp;gt;} distinct [User role])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2015 14:21:27 GMT</pubDate>
    <dc:creator>MK_QSL</dc:creator>
    <dc:date>2015-07-14T14:21:27Z</dc:date>
    <item>
      <title>Need help with Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870844#M304431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) I am trying to convert the below IF statement using&amp;nbsp; set analysis.&amp;nbsp; The below IF statement is capturing correctly the rows I need.&amp;nbsp; It even displays rows when RGroup is null....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;((&lt;SPAN style="color: #800000;"&gt;[01-Opportunity WL]&lt;/SPAN&gt; ='x' &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[02-Engagement WL]&lt;/SPAN&gt;='x' &lt;SPAN style="color: #0000ff;"&gt;or&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[06-OPTT]&lt;/SPAN&gt;='x') &lt;SPAN style="color: #0000ff;"&gt;and&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;RGroup&lt;/SPAN&gt; &amp;lt;&amp;gt; '10',&lt;SPAN style="color: #800000;"&gt;[User role]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;2) I tried to convert the above IF statement using Set Analysis but it does not&amp;nbsp; count if the RGroup field is NULL...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;[01-Opportunity WL]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"x"&lt;/SPAN&gt;},&lt;SPAN style="color: #800000;"&gt;[02-Engagement WL]&lt;/SPAN&gt;={&lt;SPAN style="color: #800000;"&gt;"x"&lt;/SPAN&gt;},&lt;SPAN style="color: #800000;"&gt;[06-OPTT]&lt;/SPAN&gt;={'x'},&lt;SPAN style="color: #800000;"&gt;RGroup&lt;/SPAN&gt;-={&lt;SPAN style="color: #800000;"&gt;"10"&lt;/SPAN&gt;}&amp;gt;} &lt;SPAN style="color: #0000ff;"&gt;distinct&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;[User Name]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;3) Then I tried using the below set analysis to capture RGroup is NULL and if RGroup is NOT equal to '10' but it doesn seem to be working...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;Count&lt;/SPAN&gt;({-&amp;lt;RGroup-={'*'}&amp;gt; +&amp;lt;RGroup-={'10'}&amp;gt; + &amp;lt;&lt;SPAN style="color: #800000;"&gt;[01-Opportunity WL]&lt;/SPAN&gt;={'x'}&amp;gt;*&amp;lt;&lt;SPAN style="color: #800000;"&gt;[02-Engagement WL]&lt;/SPAN&gt;={'x'}&amp;gt;*&amp;lt;&lt;SPAN style="color: #800000;"&gt;[06-OPTT]&lt;/SPAN&gt;={'x'}&amp;gt;} distinct &lt;SPAN style="color: #800000;"&gt;[User Name]&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;)&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;Is my syntax wrong? Am I useing the '+' and '*' inccorrectly?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:17:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870844#M304431</guid>
      <dc:creator />
      <dc:date>2015-07-14T14:17:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870845#M304432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=count({$&amp;lt;[01-Opportunity WL]={"x"},[02-Engagement WL]={"x"},[06-OPTT]={'x'},RGroup-={'10'}&amp;gt;} distinct [User role])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870845#M304432</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-14T14:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870846#M304433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick response! I had your statement originally but...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also need where RGroup is null or blank.&amp;nbsp; When I use the above statement it doesn not count the null values where RGroup is null or blank just the row where there are values for RGroup.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:26:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870846#M304433</guid>
      <dc:creator />
      <dc:date>2015-07-14T14:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870847#M304434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Flag in your Script just below RGroup&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;RGroup &amp;lt;&amp;gt; 10 and (&lt;/SPAN&gt;IsNull(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;RGroup) or Len(Trim(&lt;SPAN style="font-size: 13.3333330154419px;"&gt;RGroup))=0, 1, 0) as Flag&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;=count({$&amp;lt;[01-Opportunity WL]={"x"},[02-Engagement WL]={"x"},[06-OPTT]={'x'},Flag={1}&amp;gt;} distinct [User role])&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870847#M304434</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-07-14T14:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870848#M304435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&amp;nbsp; Is there any other way to do this using set analysis and not creating a flag in the script?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870848#M304435</guid>
      <dc:creator />
      <dc:date>2015-07-14T14:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870849#M304436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;RGroup-={'*'},RGroup-={'10'}&amp;gt; + &lt;/P&gt;&lt;P&gt;&amp;lt;[01-Opportunity WL]={'x'},RGroup-={'10'}&amp;gt;+&lt;/P&gt;&lt;P&gt;&amp;lt;[02-Engagement WL]={'x'},RGroup-={'10'}&amp;gt;+&lt;/P&gt;&lt;P&gt;&amp;lt;[06-OPTT]={'x'},RGroup-={'10'}&amp;gt;} distinct [User Name]) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 14:37:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870849#M304436</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2015-07-14T14:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Need help with Set Analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870850#M304437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Settu but that did not work.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 15:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-help-with-Set-Analysis-syntax/m-p/870850#M304437</guid>
      <dc:creator />
      <dc:date>2015-07-14T15:14:11Z</dc:date>
    </item>
  </channel>
</rss>

