<?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: Class Function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777826#M275707</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yann &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks, i get the following results after changing the expression to Count(Distinct [Doctor Name]):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2014-12-04 at 18.43.01.png" class="jive-image" src="/legacyfs/online/72747_Screen Shot 2014-12-04 at 18.43.01.png" /&gt;&lt;/P&gt;&lt;P&gt;Either of the two dimensions yields the same result.&amp;nbsp; This is showing the count of all doctors on the&amp;nbsp; Y axis but i need this to be the count of doctors for a specific script interval.&amp;nbsp; I hope this clarifies what i am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Dec 2014 16:48:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-04T16:48:39Z</dc:date>
    <item>
      <title>Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777824#M275705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to create a bar chart using the class function.&amp;nbsp; I have the following data:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot Class.png" class="jive-image" src="/legacyfs/online/72746_Screen Shot Class.png" /&gt;&lt;/P&gt;&lt;P&gt;With the above data, I need to create a bar chart with a class interval of 1 on the X axis denoting the number of items per prescription interval, which will be count(Distinct [Script Number] ) and the number of Doctors which should be count(Distinct [Doctor Name]) on the Y axis.&amp;nbsp; How can i achieve this with the Class function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 15:57:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777824#M275705</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-04T15:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777825#M275706</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;I'm not sure of what you want exactly, but I think it should be something like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dimension : &lt;EM&gt;=class(Aggr(count([Drug Name]),[Script number]),1)&lt;/EM&gt;&amp;nbsp; (or even directly &lt;EM&gt;=Aggr(count([Drug Name]),[Script number])&lt;/EM&gt; if the class interval is 1)&lt;/P&gt;&lt;P&gt;expression : &lt;EM&gt;count(distinct [Script number])&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps&lt;/P&gt;&lt;P&gt;Yann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 16:18:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777825#M275706</guid>
      <dc:creator />
      <dc:date>2014-12-04T16:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777826#M275707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yann &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks, i get the following results after changing the expression to Count(Distinct [Doctor Name]):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2014-12-04 at 18.43.01.png" class="jive-image" src="/legacyfs/online/72747_Screen Shot 2014-12-04 at 18.43.01.png" /&gt;&lt;/P&gt;&lt;P&gt;Either of the two dimensions yields the same result.&amp;nbsp; This is showing the count of all doctors on the&amp;nbsp; Y axis but i need this to be the count of doctors for a specific script interval.&amp;nbsp; I hope this clarifies what i am looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 16:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777826#M275707</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-04T16:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777827#M275708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you should use this as dimension&amp;nbsp; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=class([Script Number],1000, 'xxxx')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 17:04:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777827#M275708</guid>
      <dc:creator />
      <dc:date>2014-12-04T17:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777828#M275709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks, i have changed the dimension along your first suggestions to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="color: #0433ff;"&gt;Replace&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;Class&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #0433ff;"&gt;DISTINCT&lt;/SPAN&gt; &lt;SPAN style="color: #941100;"&gt;[Drug Name]&lt;/SPAN&gt;),1), &lt;SPAN style="color: #941100;"&gt;[Script Number]&lt;/SPAN&gt;), '&amp;lt;= x &amp;lt;', ' - ')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0433ff;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;[Doctor Name]&lt;SPAN style="color: #000000;"&gt;), &lt;/SPAN&gt;[Script Number]&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;The result is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;IMG alt="Screen Shot 2014-12-04 at 20.17.59.png" class="jive-image" src="/legacyfs/online/72752_Screen Shot 2014-12-04 at 20.17.59.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 9px; font-family: 'Courier New'; color: #941100;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;This more or less what I am expecting.&amp;nbsp; The only problem is that I do not see any classes for Script Intervals less than 10.&amp;nbsp; Would you suggest any solution?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 18:25:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777828#M275709</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-04T18:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777829#M275710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as Count() delivers integer values, using the class function with an interval of 1 might be less readable than just displaying the integer itself, so:&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;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0433ff;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0433ff;"&gt;count&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0433ff;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #941100;"&gt;[Drug Name]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;), &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #941100;"&gt;[Script Number]&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&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;"&gt;might actually be enough.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&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;"&gt;Marco&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Dec 2014 23:49:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777829#M275710</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2014-12-04T23:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Class Function</title>
      <link>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777830#M275711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 02:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Class-Function/m-p/777830#M275711</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-05T02:20:11Z</dc:date>
    </item>
  </channel>
</rss>

