<?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 Average of expression over dimension in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-of-expression-over-dimension/m-p/1026421#M346864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the table below the 13 wk calculation is below. I am trying to get the 145 and use it in the bar chart. I am trying to only color the prior week if the number is higher or lower than the 13 week average. What is happening is the color is not off the 145, but rather the number for that week. So in this case it is 11.5 for 4/17. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(DISTINCT&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;FLG_NEW_PATIENT = {1},&lt;/P&gt;&lt;P&gt;FLG_FIRST_NEW_PT_APPT_BY_DEPT_SPECIALTY = {1},&lt;/P&gt;&lt;P&gt;DateType = {''APPOINTMENT_MADE_DATE''},&lt;/P&gt;&lt;P&gt;_W={"&amp;gt;=$(=$(vAppointmentMadeDate13WeeksAgo)) &amp;lt;= $(=$(vMaxAppointmentMadeDateWeek))"},&lt;/P&gt;&lt;P&gt;MONTH = ,&lt;/P&gt;&lt;P&gt;YEAR = ,&lt;/P&gt;&lt;P&gt;DATE = ,&lt;/P&gt;&lt;P&gt;MONTHYEAR = ,&lt;/P&gt;&lt;P&gt;WEEKNUM= ,&lt;/P&gt;&lt;P&gt;WeekEnd=&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;DATE_KEY &amp;amp; DEPT_ID)/13&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Example.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122813_Example.PNG" style="height: 226px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2016 02:28:11 GMT</pubDate>
    <dc:creator>tchovanec</dc:creator>
    <dc:date>2016-04-27T02:28:11Z</dc:date>
    <item>
      <title>Average of expression over dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-expression-over-dimension/m-p/1026421#M346864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the table below the 13 wk calculation is below. I am trying to get the 145 and use it in the bar chart. I am trying to only color the prior week if the number is higher or lower than the 13 week average. What is happening is the color is not off the 145, but rather the number for that week. So in this case it is 11.5 for 4/17. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COUNT(DISTINCT&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;FLG_NEW_PATIENT = {1},&lt;/P&gt;&lt;P&gt;FLG_FIRST_NEW_PT_APPT_BY_DEPT_SPECIALTY = {1},&lt;/P&gt;&lt;P&gt;DateType = {''APPOINTMENT_MADE_DATE''},&lt;/P&gt;&lt;P&gt;_W={"&amp;gt;=$(=$(vAppointmentMadeDate13WeeksAgo)) &amp;lt;= $(=$(vMaxAppointmentMadeDateWeek))"},&lt;/P&gt;&lt;P&gt;MONTH = ,&lt;/P&gt;&lt;P&gt;YEAR = ,&lt;/P&gt;&lt;P&gt;DATE = ,&lt;/P&gt;&lt;P&gt;MONTHYEAR = ,&lt;/P&gt;&lt;P&gt;WEEKNUM= ,&lt;/P&gt;&lt;P&gt;WeekEnd=&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;DATE_KEY &amp;amp; DEPT_ID)/13&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Example.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/122813_Example.PNG" style="height: 226px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 02:28:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-expression-over-dimension/m-p/1026421#M346864</guid>
      <dc:creator>tchovanec</dc:creator>
      <dc:date>2016-04-27T02:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Average of expression over dimension</title>
      <link>https://community.qlik.com/t5/QlikView/Average-of-expression-over-dimension/m-p/1026422#M346865</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;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;COUNT(&lt;SPAN style="color: #ff0000;"&gt;TOTAL&lt;/SPAN&gt; DISTINCT&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FLG_NEW_PATIENT = {1},&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;FLG_FIRST_NEW_PT_APPT_BY_DEPT_SPECIALTY = {1},&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;DateType = {''APPOINTMENT_MADE_DATE''},&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;_W={"&amp;gt;=$(=$(vAppointmentMadeDate13WeeksAgo)) &amp;lt;= $(=$(vMaxAppointmentMadeDateWeek))"},&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;MONTH = ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;YEAR = ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;DATE = ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;MONTHYEAR = ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WEEKNUM= ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;WeekEnd=&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;DATE_KEY &amp;amp; DEPT_ID)/13&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 02:30:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-of-expression-over-dimension/m-p/1026422#M346865</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-04-27T02:30:55Z</dc:date>
    </item>
  </channel>
</rss>

