<?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: Problem with aggr(). in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033922#M930911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression for previous year:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_YEAR&amp;gt;}&lt;/SPAN&gt;aggr(Count({&amp;lt;DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_YEAR={'$(vPY)'},DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_MONTH={'&amp;lt;=$(vPYMonth)'},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.QUARTER=&amp;gt;}DISTINCT(MEM_ID)),DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_MONTH,DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_YEAR,DW_MEM_MONTH_XTRA.Can_Map_Excel.Area2))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Mar 2016 01:49:16 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-03-09T01:49:16Z</dc:date>
    <item>
      <title>Problem with aggr().</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033921#M930910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;A href="https://community.qlik.com/qlik-users/171708" target="_blank"&gt;sunindia&lt;/A&gt;‌ &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Hi,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;SPAN style="font-size: 12.8px; line-height: 1.5em;"&gt;Please find the attached qvw file and the screen shot. I’m trying to display the values for Previous year. When the selections are not made in the YEAR, its working fine. When&amp;nbsp; we select the year then it’s not showing the values for previous year. I think I'm getting the error because of aggr().&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;please help. &lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;IMG alt="vpynot.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/117427_vpynot.png" style="height: 362px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;&lt;IMG alt="vpyyear.png" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/117434_vpyyear.png" style="height: 380px; width: 620px;" /&gt;&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Thanks,&lt;/P&gt;&lt;P style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Rajitha&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/Problem-with-aggr/m-p/1033921#M930910</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr().</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033922#M930911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this expression for previous year:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum(&lt;SPAN style="color: #ff0000;"&gt;{&amp;lt;DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_YEAR&amp;gt;}&lt;/SPAN&gt;aggr(Count({&amp;lt;DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_YEAR={'$(vPY)'},DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_MONTH={'&amp;lt;=$(vPYMonth)'},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.QUARTER=&amp;gt;}DISTINCT(MEM_ID)),DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_MONTH,DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_YEAR,DW_MEM_MONTH_XTRA.Can_Map_Excel.Area2))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 01:49:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033922#M930911</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-09T01:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr().</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033923#M930912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try This using Order_Year List box and &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;expression for &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Previous Year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=sum({&amp;lt;Order_Year={"$(=Max(Order_Year)-1)"}&amp;gt;} SalesAmount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 03:36:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033923#M930912</guid>
      <dc:creator>amayuresh</dc:creator>
      <dc:date>2016-03-09T03:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr().</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033924#M930913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 14:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033924#M930913</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-09T14:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr().</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033925#M930914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mayuresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 14:23:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033925#M930914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-09T14:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr().</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033926#M930915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bro... The solution which you gave me is working absolutely fin. But the problem is when I'm making selection in the month, The values are changing. As it is YTD calculation it should only when the year is selected... Please help&amp;nbsp; &lt;A href="https://community.qlik.com/qlik-users/171708"&gt;sunindia&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 17:44:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033926#M930915</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-09T17:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with aggr().</title>
      <link>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033927#M930917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand why the values won't change when you make a selection in month? YTD means year to date. if you select March then I would expect to see numbers for Jan, Feb and March. If that is not what you want, we can ignore any selection in month as well &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PY&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_YEAR, DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_MONTH&amp;gt;}aggr(Count({&amp;lt;DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_YEAR={'$(vPY)'},DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_MONTH=,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.QUARTER=&amp;gt;}DISTINCT(MEM_ID)),DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_MONTH,DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_YEAR,DW_MEM_MONTH_XTRA.Can_Map_Excel.Area2))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CY&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_MONTH=&amp;gt;}aggr(Count({&amp;lt;DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_YEAR={'$(vCY)'},DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_MONTH=,DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.QUARTER=&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DISTINCT(MEM_ID)),DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_MONTH,DW_MEM_MONTH_XTRA.DW_MEM_MONTH_TEMP.MEM_YEAR,DW_MEM_MONTH_XTRA.Can_Map_Excel.Area2))&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Mar 2016 18:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problem-with-aggr/m-p/1033927#M930917</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-03-09T18:51:47Z</dc:date>
    </item>
  </channel>
</rss>

