<?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: Filtering a definition by using if or where clause? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Filtering-a-definition-by-using-if-or-where-clause/m-p/1155289#M890459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count(DISTINCT &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;filterattribute = {'sn'}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt; keyattribute)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2016 10:27:55 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-08-23T10:27:55Z</dc:date>
    <item>
      <title>Filtering a definition by using if or where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-a-definition-by-using-if-or-where-clause/m-p/1155288#M890458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a table and in its function i add a "Count" function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(DISTINCT keyattribute)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works. So in the end i get a table with values on the left side and frequencies on the right side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i want to filter this table in a way that a "WHERE" Clause is predefines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This wont work for me.(example how it did not work)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(DISTINCT keyattribute) WHERE filterattribute='sn'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i also tried doing it with a if CLAUSE:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(filterattribute='sn', COUNT(DISTINCT keyattribute)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least this variant was syntactically correct, but it does not show the results i want it to. Output is just an empty table (i mean no frequencies.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-a-definition-by-using-if-or-where-clause/m-p/1155288#M890458</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a definition by using if or where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-a-definition-by-using-if-or-where-clause/m-p/1155289#M890459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using set analysis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count(DISTINCT &lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;filterattribute = {'sn'}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt; keyattribute)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 10:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-a-definition-by-using-if-or-where-clause/m-p/1155289#M890459</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-08-23T10:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a definition by using if or where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-a-definition-by-using-if-or-where-clause/m-p/1155290#M890460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think you missing closing bracket&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;if(filterattribute='sn', COUNT(DISTINCT keyattribute))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;or&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count({&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;filterattribute{'sn'}&amp;gt;}&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;keyattribute&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 10:29:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-a-definition-by-using-if-or-where-clause/m-p/1155290#M890460</guid>
      <dc:creator>arulsettu</dc:creator>
      <dc:date>2016-08-23T10:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering a definition by using if or where clause?</title>
      <link>https://community.qlik.com/t5/QlikView/Filtering-a-definition-by-using-if-or-where-clause/m-p/1155291#M890461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot :-). This worked!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2016 10:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Filtering-a-definition-by-using-if-or-where-clause/m-p/1155291#M890461</guid>
      <dc:creator />
      <dc:date>2016-08-23T10:59:24Z</dc:date>
    </item>
  </channel>
</rss>

