<?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: YOY Comparison in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YOY-Comparison/m-p/1272406#M868762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use functions on the left side of the comparison , you will need to create the field in your script during load.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;RECEIVEDHUMANADATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) as received_year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then use this feild in your set expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt; line-height: 1.5em;"&gt;count({&amp;lt;received_year={2015}&amp;gt;}INVENTORYTYPE)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2016 19:27:13 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2016-12-02T19:27:13Z</dc:date>
    <item>
      <title>YOY Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-Comparison/m-p/1272404#M868760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello -&lt;/P&gt;&lt;P&gt;I am attempting to do a YOY comparison in a chart; and with the research I have done I have not seen my exact situation.&lt;/P&gt;&lt;P&gt;I have a couple of variables; Inventory Type, Count of CCPInqKey, and Receivedhumanadata.&lt;/P&gt;&lt;P&gt;Ofcourse the Date portion is where I will be getting the Month and Year; the CCPInqKey is the count for the month, and the Inventory Type is the variable of what I want to count the YOY differences.&lt;/P&gt;&lt;P&gt;I've attempted to put together the below script from the other discussions I have found but with the below I get the error "Error in set modifier expression".&lt;/P&gt;&lt;P&gt;Im not sure if I am way off base with this; but have attached a sample of what I currently have.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff0000; font-size: 8pt;"&gt;(&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;{&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;RECEIVEDHUMANADATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)={'2015'}&amp;gt;}count(INVENTORYTYPE) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any assistance. Thanks!&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/YOY-Comparison/m-p/1272404#M868760</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: YOY Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-Comparison/m-p/1272405#M868761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use functions on the left hand side of a set modifier.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="color: #ff0000; text-decoration: line-through;"&gt;Year(RECEIVEDHUMANADATE)&lt;/SPAN&gt;={'2015'}&amp;gt;}count(INVENTORYTYPE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, you cannot have one aggregation over another without using Aggr() function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #ff0000;"&gt;Sum&lt;/SPAN&gt;({&amp;lt;Year(RECEIVEDHUMANADATE)={'2015'}&amp;gt;}&lt;SPAN style="color: #ff0000;"&gt;count&lt;/SPAN&gt;(INVENTORYTYPE)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case, try this: &lt;SPAN style="font-size: 10pt;"&gt;Instead you can create Year() in the script and use that in your set expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD INVENTORYTYPE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RECEIVEDHUMANADATE,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year(RECEIVEDHUMANADATE) as Year&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;FROM ....&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then may be this:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;SPAN style="color: #575757;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: #575757;"&gt;({&amp;lt;Year = {2015}&amp;gt;}INVENTORYTYPE)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 19:26:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YOY-Comparison/m-p/1272405#M868761</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-12-02T19:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: YOY Comparison</title>
      <link>https://community.qlik.com/t5/QlikView/YOY-Comparison/m-p/1272406#M868762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot use functions on the left side of the comparison , you will need to create the field in your script during load.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;RECEIVEDHUMANADATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;) as received_year&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Then use this feild in your set expression&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 8pt; line-height: 1.5em;"&gt;count({&amp;lt;received_year={2015}&amp;gt;}INVENTORYTYPE)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 19:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YOY-Comparison/m-p/1272406#M868762</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-12-02T19:27:13Z</dc:date>
    </item>
  </channel>
</rss>

