<?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: Total Sales for each Year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057730#M943468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get 2010. Which is correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Jan 2016 15:02:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-01-09T15:02:45Z</dc:date>
    <item>
      <title>Total Sales for each Year</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057727#M943465</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 am trying to get row number for total orders for each year inside a Straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the expression: =COUNT({&amp;lt;Year={$(=(Max(Year)))}&amp;gt;} OrderID) to what I believe should show the amount of orders(row-wise) for that year. I use that same expression but with -1, -2 etc. to get the previous year until the years in the excel-file has ended. But when I show this in the table, I get the same value on every expression. It is as if all I get is how many orders that exist in the file, and does not modify which year it should show how many orders there is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recieve the same error in my tables when I try to show total sales for every year, =SUM({&amp;lt;Year={$(=(Max(Year)))}&amp;gt;} Sales) is the expression for that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone here realize my problem, kindly advise on how to right this wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need more info, please tell me and I will gladly give it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 13:28:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057727#M943465</guid>
      <dc:creator />
      <dc:date>2016-01-09T13:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sales for each Year</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057728#M943466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you see when you put &lt;STRONG&gt;=Max(Year) &lt;/STRONG&gt;in a text box object?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 13:51:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057728#M943466</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-09T13:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sales for each Year</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057729#M943467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be easier to help you if you could upload a small sample QVW that demonstrates your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some possible issues to check:&lt;/P&gt;&lt;P&gt;- Year field is not numeric, hence max() does not work (try a text box with =max(Year) )&lt;/P&gt;&lt;P&gt;- Year field shows a different textual representation than its numeric value (compare max(Year) with e.g. Year list box values)&lt;/P&gt;&lt;P&gt;- Year field is not connected to OrderID in the data model (does the count(OrderID) change when you select in field Year?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 13:57:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057729#M943467</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-01-09T13:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sales for each Year</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057730#M943468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get 2010. Which is correct&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 15:02:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057730#M943468</guid>
      <dc:creator />
      <dc:date>2016-01-09T15:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sales for each Year</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057731#M943469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I know what was at fault here. The data in my excel-files are somewhat weird, I one summary report which is over year 2005 to 2010, and one sales file where the sales has been done in the year 2005 - 2008. When I switched years I got the correct values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help anyways!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jan 2016 15:36:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057731#M943469</guid>
      <dc:creator />
      <dc:date>2016-01-09T15:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Total Sales for each Year</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057732#M943470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, I am glad you were able to figure it out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please close the thread by marking your answer as correct and any helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jan 2016 16:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Sales-for-each-Year/m-p/1057732#M943470</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-01-10T16:03:56Z</dc:date>
    </item>
  </channel>
</rss>

