<?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 analysis not working with AGGR in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1671562#M729548</link>
    <description>&lt;P&gt;or try below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=alt(avg(Aggr(&lt;/SPAN&gt;&lt;STRONG&gt;sum&lt;/STRONG&gt;&lt;SPAN&gt;({&amp;lt;ASSIGN_TYPE_NEW&lt;STRONG&gt;*=&lt;/STRONG&gt;{"LEC"}&amp;gt;} MERGED_ENROLLED), CLASS_NBR_NEW)),0)&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Feb 2020 13:19:47 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-02-02T13:19:47Z</dc:date>
    <item>
      <title>Set analysis not working with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1671549#M729544</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;I honestly don't understand why QlikView was designed in such an ill way that sometimes it doesn't work properly at all.&lt;/P&gt;&lt;P&gt;The below expression is supposed to calculate avg enrolled for lectures whose assign is LEC. Yet it fails to work with aggr:&lt;/P&gt;&lt;P&gt;=avg( {&amp;lt;ASSIGN_TYPE_NEW={"LEC"}&amp;gt;}&amp;nbsp; &amp;nbsp; Aggr(MERGED_ENROLLED, CLASS_NBR_NEW)&amp;nbsp; &amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;I tried the below as well but none works:&lt;/P&gt;&lt;P&gt;=avg(Aggr(only({&amp;lt;ASSIGN_TYPE_NEW={"LEC"}&amp;gt;}MERGED_ENROLLED), CLASS_NBR_NEW))&lt;/P&gt;&lt;P&gt;=avg(Aggr(max({&amp;lt;ASSIGN_TYPE_NEW={"LEC"}&amp;gt;} MERGED_ENROLLED), CLASS_NBR_NEW))&lt;/P&gt;&lt;P&gt;I don't know why. I would recommend against all Qlik products. They are just poorly designed and the company is focused on milking customers.&lt;/P&gt;&lt;P&gt;Could someone please help? Note, one class_nbr_new could have multiple assign types, but I want the expression to calculate for assign_type_new = 'LEC' only&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/27844iC750D1D0F98E55C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1671549#M729544</guid>
      <dc:creator>Edge</dc:creator>
      <dc:date>2024-11-16T01:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1671551#M729545</link>
      <description>&lt;P&gt;Would you be able to share sample data with expected output? Meanwhile you can try below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=avg(Aggr(&lt;STRONG&gt;sum&lt;/STRONG&gt;({&amp;lt;ASSIGN_TYPE_NEW={"LEC"}&amp;gt;} MERGED_ENROLLED), CLASS_NBR_NEW))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2020 12:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1671551#M729545</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-02-02T12:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1671557#M729546</link>
      <description>&lt;P&gt;Hey Kush,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks again. The above is not working. My issue is when I select NON in the filter,&amp;nbsp;even if I have the Set Analysis, the expression is still calculating the value for NON assign types. The expression should show 0 instead of showing a value or the expression should be frozen on the average for LEC. Could you please take a look at the screenshot part of my original post?&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2020 12:25:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1671557#M729546</guid>
      <dc:creator>Edge</dc:creator>
      <dc:date>2020-02-02T12:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1671558#M729547</link>
      <description>&lt;P&gt;for that you need to apply set analysis in outer aggregation as well&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=avg({&amp;lt;ASSIGN_TYPE_NEW={"LEC"}&amp;gt;} Aggr(&lt;/SPAN&gt;&lt;STRONG&gt;sum&lt;/STRONG&gt;&lt;SPAN&gt;({&amp;lt;ASSIGN_TYPE_NEW={"LEC"}&amp;gt;} MERGED_ENROLLED), CLASS_NBR_NEW))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2020 12:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1671558#M729547</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-02-02T12:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1671562#M729548</link>
      <description>&lt;P&gt;or try below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=alt(avg(Aggr(&lt;/SPAN&gt;&lt;STRONG&gt;sum&lt;/STRONG&gt;&lt;SPAN&gt;({&amp;lt;ASSIGN_TYPE_NEW&lt;STRONG&gt;*=&lt;/STRONG&gt;{"LEC"}&amp;gt;} MERGED_ENROLLED), CLASS_NBR_NEW)),0)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Feb 2020 13:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1671562#M729548</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-02-02T13:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis not working with AGGR</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1673144#M729549</link>
      <description>&lt;P&gt;"...&lt;SPAN&gt;I don't know why. I would recommend against all Qlik products. &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;They are just poorly designed and the company is focused on milking customers&lt;/FONT&gt;&lt;/STRONG&gt;...."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Check it out &lt;U&gt;&lt;STRONG&gt;&lt;A href="https://blog.qlik.com/the-2019-gartner-mq-qlik-named-a-leader-9-years-in-a-row" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/STRONG&gt;&lt;/U&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 20:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-not-working-with-AGGR/m-p/1673144#M729549</guid>
      <dc:creator>jduenyas</dc:creator>
      <dc:date>2020-02-06T20:02:43Z</dc:date>
    </item>
  </channel>
</rss>

