<?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 Year function in SUM expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-function-in-SUM-expression/m-p/1354536#M833992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sales_date&amp;nbsp;&amp;nbsp; sales_value&lt;/P&gt;&lt;P&gt;12/31/2016&amp;nbsp;&amp;nbsp; 564&lt;/P&gt;&lt;P&gt;12/30/2016&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;487&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/29/2016&amp;nbsp;&amp;nbsp; 784&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/28/2016&amp;nbsp;&amp;nbsp; 231&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/27/2016&amp;nbsp;&amp;nbsp; 389&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/26/2016&amp;nbsp;&amp;nbsp; 474&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/25/2016&amp;nbsp;&amp;nbsp; 671&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/24/2016&amp;nbsp;&amp;nbsp; 600&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm trying to create an expression to create a line graph, in which each line of the graph represents the sales per month of a specific year. I was planning to create such expression gradually, but I'm having trouble even with the simple stuff. What I have right now is&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SUM({$&amp;lt;year(sales_date)={2016}&amp;gt;} sales_value)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But it's giving me and expression error. What is wrong with this simple statement?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(Btw, I'm finding the Qlik's syntax quite complicated. Is there some sort of expression debugger to help us find out what is wrong with our code? Thanks!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Year function in SUM expression</title>
      <link>https://community.qlik.com/t5/QlikView/Year-function-in-SUM-expression/m-p/1354536#M833992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dataset like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sales_date&amp;nbsp;&amp;nbsp; sales_value&lt;/P&gt;&lt;P&gt;12/31/2016&amp;nbsp;&amp;nbsp; 564&lt;/P&gt;&lt;P&gt;12/30/2016&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 13.3333px;"&gt;487&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/29/2016&amp;nbsp;&amp;nbsp; 784&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/28/2016&amp;nbsp;&amp;nbsp; 231&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/27/2016&amp;nbsp;&amp;nbsp; 389&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/26/2016&amp;nbsp;&amp;nbsp; 474&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/25/2016&amp;nbsp;&amp;nbsp; 671&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;12/24/2016&amp;nbsp;&amp;nbsp; 600&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I'm trying to create an expression to create a line graph, in which each line of the graph represents the sales per month of a specific year. I was planning to create such expression gradually, but I'm having trouble even with the simple stuff. What I have right now is&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SUM({$&amp;lt;year(sales_date)={2016}&amp;gt;} sales_value)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;But it's giving me and expression error. What is wrong with this simple statement?&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;(Btw, I'm finding the Qlik's syntax quite complicated. Is there some sort of expression debugger to help us find out what is wrong with our code? 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/Year-function-in-SUM-expression/m-p/1354536#M833992</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Year function in SUM expression</title>
      <link>https://community.qlik.com/t5/QlikView/Year-function-in-SUM-expression/m-p/1354537#M833993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to create the year field first.&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; sales_date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sales_value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year(salesdate) as Year,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Ssales_date) as Month&lt;/P&gt;&lt;P&gt;From...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after that in the expresion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={'2016'}&amp;gt;}sales_value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;let me know if it helps you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 15:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-function-in-SUM-expression/m-p/1354537#M833993</guid>
      <dc:creator>ger_alegria</dc:creator>
      <dc:date>2017-06-12T15:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Year function in SUM expression</title>
      <link>https://community.qlik.com/t5/QlikView/Year-function-in-SUM-expression/m-p/1354538#M833994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cant I use year(sales_date) instead?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:07:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-function-in-SUM-expression/m-p/1354538#M833994</guid>
      <dc:creator />
      <dc:date>2017-06-12T16:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Year function in SUM expression</title>
      <link>https://community.qlik.com/t5/QlikView/Year-function-in-SUM-expression/m-p/1354539#M833995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, if you use this sintaxys Qlik will show an error in expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 17:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-function-in-SUM-expression/m-p/1354539#M833995</guid>
      <dc:creator>ger_alegria</dc:creator>
      <dc:date>2017-06-12T17:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Year function in SUM expression</title>
      <link>https://community.qlik.com/t5/QlikView/Year-function-in-SUM-expression/m-p/1354540#M833996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forge to put values in single quotes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 20:05:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-function-in-SUM-expression/m-p/1354540#M833996</guid>
      <dc:creator />
      <dc:date>2017-06-12T20:05:02Z</dc:date>
    </item>
  </channel>
</rss>

