<?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 syntax in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/1623027#M733459</link>
    <description>&lt;P&gt;Yes you can; using implicit set operator '*' like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EventCode &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/FONT&gt;={450,455,550}&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2019 08:56:09 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2019-09-12T08:56:09Z</dc:date>
    <item>
      <title>Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/1623019#M733457</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I do not yet get set analysis that well, so this might be a dumb question.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to make a statement that you want a field to be in something, but still selectable?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Field: EventCode&lt;/P&gt;&lt;P&gt;I want it to always be within specific codes. Let say 450,455 &amp;amp; 550. If no user selection, I want to count all of the defined codes. But if the user select one of the eventcodes, I want only that one to be counted.&lt;/P&gt;&lt;P&gt;What my expression looks like now:&lt;/P&gt;&lt;P&gt;=Count(&lt;BR /&gt;{&lt;BR /&gt;&amp;lt;State={1},EventCode={450,455,550},Parameter={9}&amp;gt;&lt;BR /&gt;}EventTime&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;I have tried to add the $&lt;/P&gt;&lt;P&gt;=Count(&lt;BR /&gt;{&lt;STRONG&gt;$&lt;/STRONG&gt;&lt;BR /&gt;&amp;lt;State={1},EventCode={450,455,550},Parameter={9}&amp;gt;&lt;BR /&gt;}EventTime&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;=Count(&lt;BR /&gt;{&lt;BR /&gt;&amp;lt;State={1},EventCode={&lt;STRONG&gt;$&lt;/STRONG&gt;450,455,550},Parameter={9}&amp;gt;&lt;BR /&gt;}EventTime&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;, but it did not&amp;nbsp;change anything. I guess by saying "EventCode={450,455,550}", I'm actually telling it to always show the eventcodes no matter what.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my question: Is it possible to dictate that the eventcode has to be within some values, but still make them selectable?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:30:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/1623019#M733457</guid>
      <dc:creator>Zwax</dc:creator>
      <dc:date>2024-11-16T02:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/1623025#M733458</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try in this way:&lt;/P&gt;&lt;P&gt;1) add a variable&amp;nbsp;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount(&lt;SPAN&gt;EventCode&lt;/SPAN&gt;)=0,Replace(' 455 ' &amp;amp; ',' &amp;amp; ' 450 ' &amp;amp; ',' &amp;amp; ' 550 ',' ',chr(39)),chr(39) &amp;amp; Concat(&lt;SPAN&gt;EventCode&lt;/SPAN&gt;,chr(39) &amp;amp; ',' &amp;amp; chr(39)) &amp;amp; chr(39))&lt;/P&gt;&lt;P&gt;2) then use that variable inside set analysis&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EventCode={$(variable)}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 08:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/1623025#M733458</guid>
      <dc:creator>StarinieriG</dc:creator>
      <dc:date>2019-09-12T08:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/1623027#M733459</link>
      <description>&lt;P&gt;Yes you can; using implicit set operator '*' like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EventCode &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/FONT&gt;={450,455,550}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 08:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/1623027#M733459</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2019-09-12T08:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis syntax</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/1623132#M733460</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;Yes you can; using implicit set operator '*' like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;EventCode &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/FONT&gt;={450,455,550}&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yaaaassss. Great. Thank you&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 11:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-syntax/m-p/1623132#M733460</guid>
      <dc:creator>Zwax</dc:creator>
      <dc:date>2019-09-12T11:51:15Z</dc:date>
    </item>
  </channel>
</rss>

