<?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 Correct syntax for &amp;quot;between&amp;quot; or ''in''(as in sql) within expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Correct-syntax-for-quot-between-quot-or-in-as-in-sql-within/m-p/347880#M493555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Phani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the sum functions is not what I am after. My exact expresion would be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount([Fee Earner (WTK)]) XXX, '1 OR 2 OR 3 SELECTED', '0 or 4+ selected')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where the xxx would read 1 2 or 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried {1,2,3} and vaiuos combinations of &amp;gt;=1 &amp;lt;=3 but nothing works as expected. Any ideas would be most apprciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx &lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2012 10:25:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-14T10:25:53Z</dc:date>
    <item>
      <title>Correct syntax for "between" or ''in''(as in sql) within expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Correct-syntax-for-quot-between-quot-or-in-as-in-sql-within/m-p/347878#M493553</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 am trying to use the GetselectedCount function within an 'IF' expression. What I need is for the expression to do is to sum up a value if the GetSelectedCount is either 1,2 or 3. I know this would be a simple 'is in' or 'between' in SQL, but am not sure of the QV syntax. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF&amp;nbsp; (GetSelectedCount([MY FIELD)])&amp;nbsp;&amp;nbsp; = {1,2,3} , 'output') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it returns no results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To explain further using the SIMPLE syntax from a text box below how would I need to amend my syntax if I wanted to return a single line/word if 1,2 or 3 fields were selected from&amp;nbsp; 'MY FIELD?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;=IF (GetSelectedCount([MY FIELD)])&amp;nbsp;&amp;nbsp; = 0 , 'None Selected', &lt;/P&gt;&lt;P&gt; IF (GetSelectedCount([MY FIELD)])&amp;nbsp;&amp;nbsp; = 1 , 'One Selected', &lt;/P&gt;&lt;P&gt; IF (GetSelectedCount([MY FIELD)])&amp;nbsp;&amp;nbsp; = 2 , 'Two Selected',&lt;/P&gt;&lt;P&gt; IF (GetSelectedCount([MY FIELD)])&amp;nbsp; &amp;gt;= 3 , 'Three or more Selected',&lt;/P&gt;&lt;P&gt;&amp;nbsp; 'Error'))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Many thanks and happy FRIDAY!&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 14:55:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correct-syntax-for-quot-between-quot-or-in-as-in-sql-within/m-p/347878#M493553</guid>
      <dc:creator />
      <dc:date>2012-05-11T14:55:47Z</dc:date>
    </item>
    <item>
      <title>Correct syntax for "between" or ''in''(as in sql) within expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Correct-syntax-for-quot-between-quot-or-in-as-in-sql-within/m-p/347879#M493554</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum( {&amp;lt;&lt;CODE class="jive-code"&gt;GetSelectedCount([MY FIELD)])= {'&amp;gt;=1)&amp;lt;=3'}&lt;/CODE&gt;&amp;gt;} value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 15:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correct-syntax-for-quot-between-quot-or-in-as-in-sql-within/m-p/347879#M493554</guid>
      <dc:creator>phaneendra_kunc</dc:creator>
      <dc:date>2012-05-11T15:47:43Z</dc:date>
    </item>
    <item>
      <title>Correct syntax for "between" or ''in''(as in sql) within expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Correct-syntax-for-quot-between-quot-or-in-as-in-sql-within/m-p/347880#M493555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Phani&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the sum functions is not what I am after. My exact expresion would be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount([Fee Earner (WTK)]) XXX, '1 OR 2 OR 3 SELECTED', '0 or 4+ selected')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where the xxx would read 1 2 or 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried {1,2,3} and vaiuos combinations of &amp;gt;=1 &amp;lt;=3 but nothing works as expected. Any ideas would be most apprciated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx &lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 10:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correct-syntax-for-quot-between-quot-or-in-as-in-sql-within/m-p/347880#M493555</guid>
      <dc:creator />
      <dc:date>2012-05-14T10:25:53Z</dc:date>
    </item>
    <item>
      <title>Correct syntax for "between" or ''in''(as in sql) within expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Correct-syntax-for-quot-between-quot-or-in-as-in-sql-within/m-p/347881#M493556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Scott,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure about what your data looks like (perhaps some sort of set analysis is possible), but if you want to keep the syntax simple, you can always try the OR function... so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(GetSelectedCount([Fee Earner (WTK)]) =1&amp;nbsp;&amp;nbsp; or&lt;/P&gt;&lt;P&gt;GetSelectedCount([Fee Earner (WTK)]) =2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; or&lt;/P&gt;&lt;P&gt;GetSelectedCount([Fee Earner (WTK)]) =3, &lt;/P&gt;&lt;P&gt;, '1 OR 2 OR 3 SELECTED', '0 or 4+ selected')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work for selections greater than 1.&lt;/P&gt;&lt;P&gt;If the user doesn't select anything, and you want them to do so first, you should add a condition to show the object like:&lt;/P&gt;&lt;P&gt;GetSelectedCount([Fee Earner (WTK)]) &amp;gt;0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 10:49:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Correct-syntax-for-quot-between-quot-or-in-as-in-sql-within/m-p/347881#M493556</guid>
      <dc:creator />
      <dc:date>2012-05-14T10:49:22Z</dc:date>
    </item>
  </channel>
</rss>

