<?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: Scripting in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/757571#M269612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher, just guessing but maybe you are using distinct to count Number of Prescriptions and the same prescription is in differents months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll do a table to show value of prescriptions and number of prescriptions by month and check what metric has different values doing a sum of each month than the year total. And also in this table you can check all prescriptions are assigned to a month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Feb 2015 09:17:23 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2015-02-06T09:17:23Z</dc:date>
    <item>
      <title>Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/757569#M269610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am calculating average prescription sales value which is the total value of prescriptions dispensed divided by the total number of prescriptions dispensed.&amp;nbsp; I have year, month, quarter and day filters.&amp;nbsp; The results for the year 2104 filter are displayed below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Average Rx Sales Price.png" class="image-1 jive-image" src="/legacyfs/online/77269_Average Rx Sales Price.png" style="height: 272px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;The results of the year 2014 and June filter are shown below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2015-02-06 at 11.02.52.png" class="jive-image image-2" src="/legacyfs/online/77273_Screen Shot 2015-02-06 at 11.02.52.png" style="height: 275px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;If i change the month filter for the whole year, the average prescription sales values ranges from $17 to $21.&amp;nbsp; Why is this well below the annual figure of&amp;nbsp; $35.&amp;nbsp; What could be going wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 09:07:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/757569#M269610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-06T09:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/757570#M269611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think anything is going wrong here.&lt;/P&gt;&lt;P&gt;When you apply month filter, it will only show the figures of selected month,.&lt;/P&gt;&lt;P&gt;Hence sales value for Jun are well below year sales value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 09:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/757570#M269611</guid>
      <dc:creator>AbhijitBansode</dc:creator>
      <dc:date>2015-02-06T09:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/757571#M269612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christopher, just guessing but maybe you are using distinct to count Number of Prescriptions and the same prescription is in differents months?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll do a table to show value of prescriptions and number of prescriptions by month and check what metric has different values doing a sum of each month than the year total. And also in this table you can check all prescriptions are assigned to a month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 09:17:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/757571#M269612</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-02-06T09:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/757572#M269613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Ruben, yes i am using distinct to count Number of Prescriptions as a single prescriptions will have a number of products assigned with the same prescription number.&amp;nbsp; the same prescription should not be in different months as this is a unique record. What could be going on?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 09:28:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/757572#M269613</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-06T09:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/757573#M269614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Abhijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 09:29:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/757573#M269614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-06T09:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: Scripting</title>
      <link>https://community.qlik.com/t5/QlikView/Scripting/m-p/757574#M269615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruben&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing the DISTINCT gives consistent figures&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2015 09:44:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Scripting/m-p/757574#M269615</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-06T09:44:55Z</dc:date>
    </item>
  </channel>
</rss>

