<?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: Coding help?? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Coding-help/m-p/539014#M201431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you have a year field, try max(year)-1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Dec 2013 09:29:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-06T09:29:22Z</dc:date>
    <item>
      <title>Coding help??</title>
      <link>https://community.qlik.com/t5/QlikView/Coding-help/m-p/539013#M201430</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 have the following code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;IF (not match(COMPANY,'XYZ'),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;SUM({1&amp;lt;COMPANY={'XYZ'},FinancialYear=,Date={"&amp;gt;=$(=max(YearStart))&amp;lt;=$(=max(YearEnd))"}&amp;gt;}Values/10000000),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;COMPANY={'XYZ'},FinancialYear=,Date={"&amp;gt;=$(=max(YearStart))&amp;lt;=$(=max(YearEnd))"}&amp;gt;}Values/10000000)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;For getting the last years figures what changes are to be made...??&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Thanks and Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Rohit&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 09:02:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coding-help/m-p/539013#M201430</guid>
      <dc:creator>rohitians</dc:creator>
      <dc:date>2013-12-06T09:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: Coding help??</title>
      <link>https://community.qlik.com/t5/QlikView/Coding-help/m-p/539014#M201431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you have a year field, try max(year)-1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 09:29:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coding-help/m-p/539014#M201431</guid>
      <dc:creator />
      <dc:date>2013-12-06T09:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Coding help??</title>
      <link>https://community.qlik.com/t5/QlikView/Coding-help/m-p/539015#M201432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try on this code, hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum( {$&amp;lt;Year = {$(=Only(Year)-1)}&amp;gt;} Sales )&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;returns the sales for the previous year in relation to the current&lt;/P&gt;&lt;P&gt;selection. Here, a dollar-sign expansion is used to calculate&lt;/P&gt;&lt;P&gt;previous year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum(({&amp;lt;Year={$(=max(Year))},&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Customer = p({&amp;lt;Year={$(=max(Year)-1)} Customer&amp;gt;}) Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Returns this year’s sales for customers who had sales last year.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 09:38:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coding-help/m-p/539015#M201432</guid>
      <dc:creator />
      <dc:date>2013-12-06T09:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Coding help??</title>
      <link>https://community.qlik.com/t5/QlikView/Coding-help/m-p/539016#M201433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx for the reply ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the following codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CY:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;FinancialYear=,FiscalYear={$(=max(FiscalYear))},COMPANY-={'XYZ'},&lt;/P&gt;&lt;P&gt;Date={"&amp;gt;=$(=YearStart(max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}Date),0,4))&amp;lt;=$(=max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}Date))"}&amp;gt;}Values )/10000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LY:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;FinancialYear=,FiscalYear={$(=max(FiscalYear)-1)},COMPANY-={'XYZ'}&lt;/P&gt;&lt;P&gt;,Date={"&amp;gt;=$(=YearStart(max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}Date),-1,4))&amp;lt;=$(=addmonths(max({$&amp;lt;FiscalYear={$(=max(FiscalYear))}&amp;gt;}Date),-12))"}&lt;/P&gt;&lt;P&gt;&amp;gt;}Values )/10000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 05:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Coding-help/m-p/539016#M201433</guid>
      <dc:creator>rohitians</dc:creator>
      <dc:date>2013-12-10T05:24:21Z</dc:date>
    </item>
  </channel>
</rss>

