<?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: Average in Script when in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114239#M908910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don´t just this into your graph?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Avg({&amp;lt;ENROLLMENT_STATUS = {'Closed'},REASON ={'a','b'},&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;DAYS=["&amp;gt;0"}&lt;/SPAN&gt;&amp;gt;}DAYS)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 19:35:57 GMT</pubDate>
    <dc:creator>Clever_Anjos</dc:creator>
    <dc:date>2016-06-14T19:35:57Z</dc:date>
    <item>
      <title>Average in Script when</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114233#M908901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the below expression but want to add this into the script. How would one write this? I also would like to remove zero values from the average.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chart Properties Expression below:&lt;/P&gt;&lt;P&gt;Dimensions: Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Avg({&amp;lt;ENROLLMENT_STATUS = {'Closed'},REASON ={'a','b'}&amp;gt;}DAYS)&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/Average-in-Script-when/m-p/1114233#M908901</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Average in Script when</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114234#M908903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you need a level of aggregation?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:13:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114234#M908903</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-06-14T19:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Average in Script when</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114235#M908904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put another way, where did you use this in the front end? A chart or text box object? If it was in chart, what were the dimensions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:15:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114235#M908904</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-14T19:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Average in Script when</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114236#M908905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guessing from the sparse information provided, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AVG(DAYS) AS AverageDays&lt;/P&gt;&lt;P&gt;RESIDENT YourTableWithAllFields&lt;/P&gt;&lt;P&gt;WHERE DAYS &amp;lt;&amp;gt;0 AND &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ENROLLMENT_STATUS = 'Closed' AND MATCH(REASON, 'a','b');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114236#M908905</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-14T19:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Average in Script when</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114237#M908907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. I have updated my question. This was in the Chart Properties and my dimesion field is "Program". I would like the avg to calcuate based off my selections from the list box, but need to only avg when. Enrollment status = 'Closed', Reasons = 'a','b' and Days &amp;lt;&amp;gt; 0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114237#M908907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-14T19:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Average in Script when</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114238#M908908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be like this:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&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;LOAD &lt;SPAN style="color: #ff0000;"&gt;Program,&lt;/SPAN&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Avg(DAYS) as AverageDays&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;RESIDENT YourTableWithAllFields&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;WHERE DAYS &amp;lt;&amp;gt;0 AND &lt;SPAN style="font-style: inherit;"&gt;ENROLLMENT_STATUS = 'Closed' AND MATCH(REASON, 'a','b')&lt;/SPAN&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;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Group By Program&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;UPDATE: Used Stefan's code and added the Program as the dimension&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114238#M908908</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-14T19:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Average in Script when</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114239#M908910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don´t just this into your graph?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;Avg({&amp;lt;ENROLLMENT_STATUS = {'Closed'},REASON ={'a','b'},&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;DAYS=["&amp;gt;0"}&lt;/SPAN&gt;&amp;gt;}DAYS)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 19:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114239#M908910</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2016-06-14T19:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Average in Script when</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114240#M908911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could and it's nice to now know the syntax. Are there advantages and disadvantages in doing this? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 12:29:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114240#M908911</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-15T12:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Average in Script when</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114241#M908913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I'm almost there. I have in my where clause the string don't. I believe the apostrophe is throwing an error. Is there a way for QV to except the apostrophe. I tried to use Double quotes, but that's not working! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:42:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114241#M908913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-15T16:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Average in Script when</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114242#M908914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to use two single quotes within the string literal (and enclose with single quotes around).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114242#M908914</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-06-15T16:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Average in Script when</title>
      <link>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114243#M908915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4232"&gt;Escape sequences&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 16:46:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-in-Script-when/m-p/1114243#M908915</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-06-15T16:46:14Z</dc:date>
    </item>
  </channel>
</rss>

