<?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: Expression syntax to exclude specific data set in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377882#M495012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quck reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am doing this correctly this is simply removing the .# from the case number. I want to exclude .# from the query so the cases do not show up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if my expression is- &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;count(distinct WP_CaseTable.Number)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;How would I include your statement to count my distinct case numbers but exclude all&lt;STRONG&gt; '.#'&lt;/STRONG&gt; cases from the count?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2012 21:30:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-08-14T21:30:27Z</dc:date>
    <item>
      <title>Expression syntax to exclude specific data set</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377880#M495004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have case numbers that I need to exclude from my trending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case numbers examples:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G2012-02534&lt;/P&gt;&lt;P&gt;G2012-03456&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have cases (addendums) where the case adds a .1 to the case number which need to be excluded from the query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case number examples to exclude from query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G2012-02534.1&lt;/P&gt;&lt;P&gt;G2012-03456.2&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How I exclude '.#' cases in this statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(distinct WP_CaseTable.Number)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 21:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377880#M495004</guid>
      <dc:creator />
      <dc:date>2012-08-14T21:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax to exclude specific data set</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377881#M495007</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Try like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Subfield(FieldName,'.',1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example : =Subfield('G2012-02534.1','.',1) gives G2012-02534&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 21:20:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377881#M495007</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-08-14T21:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax to exclude specific data set</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377882#M495012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quck reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am doing this correctly this is simply removing the .# from the case number. I want to exclude .# from the query so the cases do not show up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if my expression is- &lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;count(distinct WP_CaseTable.Number)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #636363; font-family: Arial; font-size: 12px; background-color: #eef4f9;"&gt;How would I include your statement to count my distinct case numbers but exclude all&lt;STRONG&gt; '.#'&lt;/STRONG&gt; cases from the count?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 21:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377882#M495012</guid>
      <dc:creator />
      <dc:date>2012-08-14T21:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax to exclude specific data set</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377883#M495013</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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I can't get you.But something like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =Use in script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Load *, Subfield(FieldName,'.',1) as FieldName from table; And use it in expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(distinct WP_CaseTable.Number) - Count(distinct Subfield(WP_CaseTable.Number,'.',1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; But not&amp;nbsp; sure..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 21:37:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377883#M495013</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-08-14T21:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax to exclude specific data set</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377884#M495014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=Count( {$-1&amp;lt;Case={'*.*'}&amp;gt;} Case )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will force an exlusion of any records in the field case containg a string value of ".".&lt;/P&gt;&lt;P&gt;Change case to your field and you should be good to go. However if you dont need those records in the data model I would recommend that you exlude them alltogether in the load script instead. Will make your expressions way easier to maintain &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is a sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2012 22:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377884#M495014</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2012-08-14T22:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax to exclude specific data set</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377885#M495015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alexander! That worked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I would like to build this into my script. I'm fairly new the QV- Could you explain how to incorporate this into the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 13:51:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377885#M495015</guid>
      <dc:creator />
      <dc:date>2012-08-15T13:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Expression syntax to exclude specific data set</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377886#M495016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should be able to add a where statement to your load statement. On a box that dont have QV installed so this is kinda psuedo code but should point you in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load *&lt;/P&gt;&lt;P&gt;from YourODBC&lt;/P&gt;&lt;P&gt;Where Case NOT LIKE '%.%';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Aug 2012 21:29:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-syntax-to-exclude-specific-data-set/m-p/377886#M495016</guid>
      <dc:creator>Alexander_Thor</dc:creator>
      <dc:date>2012-08-15T21:29:51Z</dc:date>
    </item>
  </channel>
</rss>

