<?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 Set Expression to Include and Exclude in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Expression-to-Include-and-Exclude/m-p/444984#M1151158</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was the original formula I was using in a bar chart until I was told we needed to trim down the displayed system names:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;=(&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;history_status_name&lt;/SPAN&gt;={'Resubmitted'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;history_update_date&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;add_date&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I tried some set analysis wizard and it came out with the following formula, but of course QV didn't like it.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;system_name&lt;/SPAN&gt;-={'Capacity Tool Addition','CN Release - Test Wafer','New Development','Production'}&amp;gt;}(count({$&amp;lt;history_status_name={'Resubmitted'}&amp;gt;}history_update_date)/count(add_date))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to exclude the 4 system names first, and then use history status names of "Resubmitted" in the calculations. Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Apr 2013 13:58:31 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-04-11T13:58:31Z</dc:date>
    <item>
      <title>Set Expression to Include and Exclude</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-to-Include-and-Exclude/m-p/444984#M1151158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was the original formula I was using in a bar chart until I was told we needed to trim down the displayed system names:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;=(&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;history_status_name&lt;/SPAN&gt;={'Resubmitted'}&amp;gt;}&lt;SPAN style="color: #800000;"&gt;history_update_date&lt;/SPAN&gt;)/&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;add_date&lt;/SPAN&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So I tried some set analysis wizard and it came out with the following formula, but of course QV didn't like it.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; font-size: 12pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;system_name&lt;/SPAN&gt;-={'Capacity Tool Addition','CN Release - Test Wafer','New Development','Production'}&amp;gt;}(count({$&amp;lt;history_status_name={'Resubmitted'}&amp;gt;}history_update_date)/count(add_date))) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to exclude the 4 system names first, and then use history status names of "Resubmitted" in the calculations. Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 13:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-to-Include-and-Exclude/m-p/444984#M1151158</guid>
      <dc:creator />
      <dc:date>2013-04-11T13:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression to Include and Exclude</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-to-Include-and-Exclude/m-p/444985#M1151161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm afraid I don't understand your requirements. Does this do what you want:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: 'courier new', courier; font-size: 16px; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 16px; font-family: 'courier new', courier; color: #0000ff;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: 'courier new', courier; font-size: 16px; background-color: #ffffff;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 16px; font-family: 'courier new', courier; color: #800000;"&gt;system_name&lt;/SPAN&gt;&lt;SPAN style="color: #737373; font-family: 'courier new', courier; font-size: 16px; background-color: #ffffff;"&gt;-={'Capacity Tool Addition','CN Release - Test Wafer','New Development','Production'},history_status_name={'Resubmitted'}&amp;gt;}history_update_date)/count(add_date)))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 16:47:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-to-Include-and-Exclude/m-p/444985#M1151161</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-04-11T16:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression to Include and Exclude</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-to-Include-and-Exclude/m-p/444986#M1151164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try This&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; font-size: 16px; color: #737373; font-family: 'courier new', courier;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 16px; font-family: 'courier new', courier; color: #0000ff;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 16px; color: #737373; font-family: 'courier new', courier;"&gt;({1-$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 16px; font-family: 'courier new', courier; color: #800000;"&gt;system_name&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; font-size: 16px; color: #737373; font-family: 'courier new', courier;"&gt;={'Capacity Tool Addition','CN Release - Test Wafer','New Development','Production'},history_status_name={'Resubmitted'}&amp;gt;}history_update_date)/count(add_date)))&lt;/SPAN&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;Nirmal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 17:09:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-to-Include-and-Exclude/m-p/444986#M1151164</guid>
      <dc:creator />
      <dc:date>2013-04-11T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression to Include and Exclude</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Expression-to-Include-and-Exclude/m-p/444987#M1151165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes it does, Gysbert! I had to remove two parantheses at the end and it still underlined everything after:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 10pt;"&gt;system_name&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;-= &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with a squiggly red line, but it was exactly what I needed. This will help tremendously with the rest of my expressoins as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 17:14:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Expression-to-Include-and-Exclude/m-p/444987#M1151165</guid>
      <dc:creator />
      <dc:date>2013-04-11T17:14:03Z</dc:date>
    </item>
  </channel>
</rss>

