<?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: Set Expression inside the Aggr() Function in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Expression-inside-the-Aggr-Function/m-p/1992553#M82128</link>
    <description>&lt;P&gt;Qlik is case sensitive, and you are missing some brackets, so change your expression to:&lt;BR /&gt;&lt;SPAN&gt;=Aggr(&lt;/SPAN&gt;&lt;SPAN&gt;avg({&amp;lt;Score = {"&amp;gt;=0"}, Status = {High}&amp;gt;}&amp;nbsp;Score), Last_Updated_Date)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2022 03:53:59 GMT</pubDate>
    <dc:creator>Lisa_P</dc:creator>
    <dc:date>2022-10-14T03:53:59Z</dc:date>
    <item>
      <title>Set Expression inside the Aggr() Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-inside-the-Aggr-Function/m-p/1992535#M82127</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I have researched the community board and I thought I followed the docs and solutions that were posted however, I'm still running into an issue.&lt;/P&gt;
&lt;P&gt;Problem Description: I'm using the Aggr() function as a measure in a line chart. It renders the data perfectly except that it does not execute the set Expression. Regardless if the set expression is inside the aggr or outside.&lt;/P&gt;
&lt;P&gt;The data is in one table and is very similar to this sample data pasted below.&lt;/P&gt;
&lt;P&gt;The measure that I'm using in the line chart is:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Aggr(avg(Score), Last_Updated_Date)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I get a chart like so (Note data in the chart is not the same as the sample data provided):&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HZey_1-1665709543326.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/91290iDDE346B07BE00A94/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HZey_1-1665709543326.png" alt="HZey_1-1665709543326.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I then added the set expression at the Aggr level&lt;/P&gt;
&lt;P&gt;=Aggr({&amp;lt;Score = {"&amp;gt;=0"},Status = 'high'&amp;gt;}&lt;BR /&gt;avg(Score), Last_Updated_Date)&lt;/P&gt;
&lt;P&gt;but no change occurs to the Chart. I even moved the expression inside the avg function and still not change&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="HZey_0-1665709268363.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/91289i45F39CB4D88C0117/image-size/medium?v=v2&amp;amp;px=400" role="button" title="HZey_0-1665709268363.png" alt="HZey_0-1665709268363.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 01:14:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-inside-the-Aggr-Function/m-p/1992535#M82127</guid>
      <dc:creator>H-Zey</dc:creator>
      <dc:date>2022-10-14T01:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression inside the Aggr() Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-inside-the-Aggr-Function/m-p/1992553#M82128</link>
      <description>&lt;P&gt;Qlik is case sensitive, and you are missing some brackets, so change your expression to:&lt;BR /&gt;&lt;SPAN&gt;=Aggr(&lt;/SPAN&gt;&lt;SPAN&gt;avg({&amp;lt;Score = {"&amp;gt;=0"}, Status = {High}&amp;gt;}&amp;nbsp;Score), Last_Updated_Date)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 03:53:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-inside-the-Aggr-Function/m-p/1992553#M82128</guid>
      <dc:creator>Lisa_P</dc:creator>
      <dc:date>2022-10-14T03:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression inside the Aggr() Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-inside-the-Aggr-Function/m-p/1992744#M82151</link>
      <description>&lt;P&gt;Hi Lisa,&lt;/P&gt;
&lt;P&gt;Still doesn't work. I checked the data and the values used.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I feel that it is being ignored or not executed at all&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 12:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-inside-the-Aggr-Function/m-p/1992744#M82151</guid>
      <dc:creator>H-Zey</dc:creator>
      <dc:date>2022-10-14T12:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression inside the Aggr() Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-inside-the-Aggr-Function/m-p/1992772#M82155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/187905"&gt;@H-Zey&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Maybe this:&lt;/P&gt;
&lt;P&gt;Avg( {&amp;lt; Score = {"&amp;gt;=0"}, Status = {'High'} &amp;gt;} Score ) as measure&lt;/P&gt;
&lt;P&gt;and&amp;nbsp;&lt;SPAN&gt;&lt;STRONG&gt;Last_Updated_Date&lt;/STRONG&gt; as dimension.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I hope it can helps.&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 13:12:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-inside-the-Aggr-Function/m-p/1992772#M82155</guid>
      <dc:creator>agigliotti</dc:creator>
      <dc:date>2022-10-14T13:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: Set Expression inside the Aggr() Function</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Expression-inside-the-Aggr-Function/m-p/1992800#M82157</link>
      <description>&lt;P&gt;Lisa, you are right that Qlik was case sensitive and once I modified the expression to this:&lt;/P&gt;
&lt;P&gt;Aggr({&amp;lt;Score = {"&amp;gt;=0"},Status = {"low"}&amp;gt;}&amp;nbsp;avg( Score),Last_Updated_Date)&lt;/P&gt;
&lt;P&gt;Everything worked fine&lt;/P&gt;
&lt;P&gt;Agigliotti: Dropping the Aggr surprisingly worked too but only after I fixed the above syntax.&lt;/P&gt;
&lt;P&gt;I thought that I needed to aggregate the data first but looks like qlik does that for you in this particular scenario.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2022 13:59:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Expression-inside-the-Aggr-Function/m-p/1992800#M82157</guid>
      <dc:creator>H-Zey</dc:creator>
      <dc:date>2022-10-14T13:59:57Z</dc:date>
    </item>
  </channel>
</rss>

