<?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: problem with operators as text in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/problem-with-operators-as-text-in-set-analysis/m-p/501681#M187431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You can't use variables that return values on the left side of the = operator in set analysis expressions, only field names or expressions that return a field name.&lt;/P&gt;&lt;P&gt;2. The syntax isn't correct. It's generally something like count( {&amp;lt;FieldName = {'Value'} &amp;gt;} contacts)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Please read these two documents and post an example document:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2380" style="color: #007fc0; text-decoration: initial;"&gt;QlikCommunity Tip: How to get answers to your post?&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1290" style="color: #007fc0; text-decoration: initial;"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2013 14:49:36 GMT</pubDate>
    <dc:creator>Gysbert_Wassenaar</dc:creator>
    <dc:date>2013-07-19T14:49:36Z</dc:date>
    <item>
      <title>problem with operators as text in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-operators-as-text-in-set-analysis/m-p/501680#M187430</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;I have a vairable that has dual values stored in it:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&amp;nbsp; Var1 = dual('&amp;gt;3 months', 3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write some set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(&amp;nbsp; {&amp;lt; Var1 = {'&amp;gt;3 months', '3-6 months'} &amp;gt;}&amp;nbsp; contacts)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this scenario, it recognises the '3-6 months' but not the first one - I believe it is because of the &amp;gt; symbol in the text confusing QView.&amp;nbsp; How do I get around this in the expression layer without altering the names of my groups?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GPC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 13:59:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-operators-as-text-in-set-analysis/m-p/501680#M187430</guid>
      <dc:creator />
      <dc:date>2013-07-19T13:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem with operators as text in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-operators-as-text-in-set-analysis/m-p/501681#M187431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You can't use variables that return values on the left side of the = operator in set analysis expressions, only field names or expressions that return a field name.&lt;/P&gt;&lt;P&gt;2. The syntax isn't correct. It's generally something like count( {&amp;lt;FieldName = {'Value'} &amp;gt;} contacts)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Please read these two documents and post an example document:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-2380" style="color: #007fc0; text-decoration: initial;"&gt;QlikCommunity Tip: How to get answers to your post?&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/docs/DOC-1290" style="color: #007fc0; text-decoration: initial;"&gt;Preparing examples for Upload - Reduction and Data Scrambling&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 14:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-operators-as-text-in-set-analysis/m-p/501681#M187431</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-07-19T14:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem with operators as text in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-operators-as-text-in-set-analysis/m-p/501682#M187432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I think you may have misinterpreted my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Var1 has the following options : new, 1-3 months, &amp;gt;3 months based on an IF statement during the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I set them up as a dual() value so that they easily sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in reality, &amp;gt;3 months is stored as&amp;nbsp;&amp;nbsp; dual('&amp;gt;3 months', 3).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And sorry, I missed a { in my example code, my set statement is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;=count(&amp;nbsp; {&amp;lt; Var1 = {'&amp;gt;3 months', '3-6 months'} &amp;gt;}&amp;nbsp; contacts)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;I have uploaded an example - note the 3 text boxes are an attempt to replicate the table - the set with &amp;gt; in it never works because QView gets confused and treats it as an operator even though it's not in ""'s.&amp;nbsp; The red box is the problem one - it should make more sense now &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;GPC&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 15:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-operators-as-text-in-set-analysis/m-p/501682#M187432</guid>
      <dc:creator />
      <dc:date>2013-07-19T15:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: problem with operators as text in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-operators-as-text-in-set-analysis/m-p/501683#M187433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you may have meant Field, not Variable?&amp;nbsp; If it is a field, add a wildcard before the &amp;lt; as a workaround.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=count({&amp;lt;Var1={'&lt;STRONG&gt;*&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":red_heart:"&gt;❤️&lt;/span&gt; months','3-6 months'}&amp;gt;} contacts)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://robwunderlich.com"&gt;http://robwunderlich.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 15:29:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-operators-as-text-in-set-analysis/m-p/501683#M187433</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2013-07-19T15:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: problem with operators as text in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/problem-with-operators-as-text-in-set-analysis/m-p/501684#M187434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob - exactly what I was after!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 15:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/problem-with-operators-as-text-in-set-analysis/m-p/501684#M187434</guid>
      <dc:creator />
      <dc:date>2013-07-19T15:30:15Z</dc:date>
    </item>
  </channel>
</rss>

