<?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 Conditional expression issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Conditional-expression-issue/m-p/365821#M1172419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;In my qv application I have created a straight table as the attached sample. The conditional expression that I have used for individual month field is&amp;nbsp; For example jan &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=SubStringCount(GetFieldSelections(Month,',',100),'Jan')&amp;gt;0 and GetFieldSelections(Quarter) &amp;lt;&amp;gt; 'Q2'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;and GetFieldSelections(Quarter) &amp;lt;&amp;gt; 'Q3' and GetFieldSelections(Quarter) &amp;lt;&amp;gt; 'Q4' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;IMG __jive_id="16933" class="jive-image-thumbnail jive-image" onclick="" alt="pic1.png" src="https://community.qlik.com/legacyfs/online/16933_pic1.png" width="450" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I select any combination of quarter like Q2 and Q3, the output is like All the months are displayed with Q1 and Q4 months with 0 and Q2 , Q3 months with data. The output is correct but I don’t want Q1, Q4 to be displayed, since we are selecting only Q2 and Q3. This is for all possible Quarter combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="16934" class="jive-image-thumbnail jive-image" onclick="" alt="pic2.png" src="https://community.qlik.com/legacyfs/online/16934_pic2.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Kindly provide a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2012 06:13:29 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-06-25T06:13:29Z</dc:date>
    <item>
      <title>Conditional expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-issue/m-p/365821#M1172419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All, &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;In my qv application I have created a straight table as the attached sample. The conditional expression that I have used for individual month field is&amp;nbsp; For example jan &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;=SubStringCount(GetFieldSelections(Month,',',100),'Jan')&amp;gt;0 and GetFieldSelections(Quarter) &amp;lt;&amp;gt; 'Q2'&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;and GetFieldSelections(Quarter) &amp;lt;&amp;gt; 'Q3' and GetFieldSelections(Quarter) &amp;lt;&amp;gt; 'Q4' &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;IMG __jive_id="16933" class="jive-image-thumbnail jive-image" onclick="" alt="pic1.png" src="https://community.qlik.com/legacyfs/online/16933_pic1.png" width="450" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I select any combination of quarter like Q2 and Q3, the output is like All the months are displayed with Q1 and Q4 months with 0 and Q2 , Q3 months with data. The output is correct but I don’t want Q1, Q4 to be displayed, since we are selecting only Q2 and Q3. This is for all possible Quarter combination.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="16934" class="jive-image-thumbnail jive-image" onclick="" alt="pic2.png" src="https://community.qlik.com/legacyfs/online/16934_pic2.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;Kindly provide a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 06:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-issue/m-p/365821#M1172419</guid>
      <dc:creator />
      <dc:date>2012-06-25T06:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-issue/m-p/365822#M1172420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gerard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the problem is that GetFieldSelections(Quarter) returns all selected Quarters, so your comparisons to won't work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could get around this using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SubStringCount(GetFieldSelections(Month,',',100),'Jan')&amp;gt;0 and wildmatch(GetFieldSelections(Quarter),'*Q1*')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or even a bit shorter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count({&amp;lt;Month *= {'Jan'}&amp;gt;} Month)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 09:03:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-issue/m-p/365822#M1172420</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-06-25T09:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Conditional expression issue</title>
      <link>https://community.qlik.com/t5/QlikView/Conditional-expression-issue/m-p/365823#M1172421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.... Its working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 11:06:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Conditional-expression-issue/m-p/365823#M1172421</guid>
      <dc:creator />
      <dc:date>2012-06-25T11:06:01Z</dc:date>
    </item>
  </channel>
</rss>

